Comments (3)
In the section_plot
function a line is plotted using p = ax_obs.plot(plot_df)
. Using this, matplotlib will pick an xlim in such a way that there is some white space before the start (and after the end) of the line. I think they do this so you can see exactly where the line starts (and ends).
When you specify tmin
in the section_plot
function the plof_df
is sliced using plot_df = self._obj.loc[name, "obs"][tmin:tmax][cols].copy()
. The plot is still created using p = ax_obs.plot(plot_df)
so matplotlib will pick an xlim with some white space before the start of the sliced DataFrame.
I think the solution here is to set the xlim after the plot is created based on tmin and tmax for example: ax_obs.set_xlim(tmin, tmax)
.
from hydropandas.
Thanks for your suggestion. I will implement for the option when tmin is set. I will do some research about the chosen xlim for the plot without tmin. A 4,5 year gap is a little bit too much for me.
Today I checked wether there is some NaN data in the dataset, that might cause the 4,5 year gap. There is no NaN data.
from hydropandas.
closed by #116
from hydropandas.
Related Issues (20)
- Create Obs object from another Obs object
- REGIS OSerror HOT 2
- Add option to read thresholds from FEWS xml
- read_dino from zipfile eats disk space HOT 4
- Add option to allow for different ObsClasses in FEWS xml reader HOT 1
- Unknown Grondwaterstanden_Put Dino format HOT 4
- Get Hydropandas time series observations from rasters (xarray Datasets / DataArrays)
- Generic import/export function for Obs and ObsCollection classes HOT 5
- Create `_repr_html_` for Obs and ObsCollection classes HOT 2
- Add `compare` method to Obs and ObsCollection class
- Gohlke binaries no longer needed HOT 2
- KNMI meteo station locations HOT 5
- Add option to add all metadata to the ObsCollection using the `add_meta_to_df` method HOT 1
- Error when reading Menyanthes file without stresses HOT 1
- `get_zvec` in gwobs not working for rotated grids
- unexpected result when `deep=True`
- remove all the warnings in read_bro
- Make `read_modflow` input more flexible
- Add Deprecation warning for `hydropandas.io.knmi.get_nearest_station_df()` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydropandas.