Skip to content

Commit

Permalink
Plotly update - doc fixed (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
figuetbe authored Dec 18, 2024
1 parent 7251e36 commit 791c489
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/visualize/plotly.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ All kwargs arguments are passed directly to the corresponding method.
)

It is also possible to combine elements by constructing a
:class:`~plotly.graph_objects.Scattermapbox` object:
:class:`~plotly.graph_objects.Scattermap` object:

.. jupyter-execute::

Expand All @@ -79,7 +79,7 @@ It is also possible to combine elements by constructing a
)

fig.add_trace(
belevingsvlucht.Scattermapbox(
belevingsvlucht.Scattermap(
mode="lines",
line=dict(color="#f58518", width=1),
showlegend=False,
Expand All @@ -90,7 +90,7 @@ It is also possible to combine elements by constructing a
width=600,
height=600,
margin=dict(l=50, r=0, t=40, b=40),
mapbox=dict(
map=dict(
style="carto-positron",
zoom=7,
center=airports["EHLE"].latlon_dict,
Expand Down
16 changes: 16 additions & 0 deletions src/traffic/core/flight.py
Original file line number Diff line number Diff line change
Expand Up @@ -2999,15 +2999,31 @@ def line_geo(self, **kwargs: Any) -> "go.Figure":
raise ImportError("Install plotly or traffic with the plotly extension")

def line_map(
<<<<<<< HEAD
<<<<<<< HEAD
self, map_style: str = "carto-positron", **kwargs: Any
=======
self, mapbox_style: str = "carto-positron", **kwargs: Any
>>>>>>> 3e6901d (Plotly switch from mapbox to maplibre)
=======
self, map_style: str = "carto-positron", **kwargs: Any
>>>>>>> 339371b (swith mapbox to map)
) -> "go.Figure":
raise ImportError("Install plotly or traffic with the plotly extension")

def scatter_geo(self, **kwargs: Any) -> "go.Figure":
raise ImportError("Install plotly or traffic with the plotly extension")

def scatter_map(
<<<<<<< HEAD
<<<<<<< HEAD
self, map_style: str = "carto-positron", **kwargs: Any
=======
self, mapbox_style: str = "carto-positron", **kwargs: Any
>>>>>>> 3e6901d (Plotly switch from mapbox to maplibre)
=======
self, map_style: str = "carto-positron", **kwargs: Any
>>>>>>> 339371b (swith mapbox to map)
) -> "go.Figure":
raise ImportError("Install plotly or traffic with the plotly extension")

Expand Down

0 comments on commit 791c489

Please sign in to comment.