Time series plot extent #437
daniel-caichac-DHI
started this conversation in
General
Replies: 1 comment 4 replies
-
The reason for plotting the raw data in the time series plot is that the measurement data can potentially have large gaps or be very sparse. You can can force the modelresult to only cover a specific period with the sel method before matching e.g. mr = mr.sel(time="2023") |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
short question, but I think it comes from this line
modelskill/modelskill/comparison/_comparer_plotter.py
Line 99 in 72d5183
But in a nutshell, when I have a matched model-obs (ie, after doing
ms.match
) and then I do a Scatter plot, I only get overlapping data of course, which is right, but a timeseries plots, is plotting theraw
model data on the back and then the measurements on the top, so not necessarily the matched time steps.This is kind of funny when the model is much longer than the measurements, see example (which also makes it slower)
I am bypassing this by manually adding
ax.set_xlim
after the plots is done (I know it can also be akwarg
), but since the histogram and scatter and all statistics are done on thepaired
data, is there a particular reason why the timeseries plot is done on the raw model and not on the compared data? @ecomodellerThis is how it looks after manually setting ax.set_xlim
Beta Was this translation helpful? Give feedback.
All reactions