-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |