Skip to content

Commit

Permalink
documentation md.iplot_timeseries
Browse files Browse the repository at this point in the history
  • Loading branch information
rbardaji committed Mar 15, 2020
1 parent 045578c commit 0465177
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/api_reference/index_api_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@ wf = md.WaterFrame()
### Interactive plot

* [md.iplot_location(list_wf)](util/iplot/iplot_location.md): It creates a Plotly Figure with a map and a spot of the measurement location of the input WaterFrames.
* [md.iplot_timeseries(list_wf, parameter_to_plot)](util/iplot/iplot_timeseries.md): It creates a Plotly figure with the time-series of the input parameter.

Return to the [Docs Index](../index_docs.md).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions docs/api_reference/util/iplot/iplot_timeseries.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# mooda.iplot_timeseries(*list_wf*, *parameter_to_plot*)

## Reference

It creates a Plotly figure with the time-series of the input parameter.

### Parameters

* list_wf: List of WaterFrames to be concatenated. (List of WaterFrames)
* parameter_to_plot: Parameters to plot. (str)

### Returns

* figure: Dictionary of Plotly figure. (dict)

## Example

To reproduce the example, download the NetCDF files [MO_TS_MO_OBSEA_201401.nc](http://data.emso.eu/files/emso/obsea/mo/ts/MO_TS_MO_OBSEA_201401.nc) and [MO_TS_MO_OBSEA_201402.nc](http://data.emso.eu/files/emso/obsea/mo/ts/MO_TS_MO_OBSEA_201402.nc).

```python
import mooda as md
import plotly.graph_objects as go

path = "MO_TS_MO_OBSEA_201401.nc"

wf = md.read_nc_emodnet(path)
list_wf = [wf]

fig = md.iplot_timeseries(list_wf, 'TEMP')
go.Figure(fig).show()
```

Output:

![iPlot timeseries example][iplot-timeseries]

*Note: This image is NOT the real output. This image is the output, saved in PNG.*

Return to [mooda.WaterFrame](../../index_api_reference.md).

[iplot-timeseries]: ../img_util/iplot_timeseries_example.png

0 comments on commit 0465177

Please sign in to comment.