Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overlapping lines in matplotlib library #10517

Closed
2M-kotb opened this issue Feb 17, 2018 · 3 comments
Closed

overlapping lines in matplotlib library #10517

2M-kotb opened this issue Feb 17, 2018 · 3 comments

Comments

@2M-kotb
Copy link

2M-kotb commented Feb 17, 2018

I have original data and prediction data and when I draw them they overlap

this is the plot:

figure_1-1

I want to make spaces between the two lines like the following plot:

test

@WeatherGod
Copy link
Member

Well, your model matches the observations quite nicely. That actually would raise red flags for me if they lined up that well (accidentally plotting the same data twice, for example).

Personally, I would never offset my plots like you are asking for. It is misleading and can lead to confusion. Instead, I would plot the first line thicker than the second one. But, if you really want to do the offset, you can just add a constant to the x values when calling plot() for the second one.

@WeatherGod
Copy link
Member

Since this isn't a bug report, I am going to go ahead a close this. Typically, these sorts of questions are dealt with on the mailing list or stack overflow.

@WeatherGod
Copy link
Member

As an additional note, if you look carefully, that example plot isn't actually offset. All pairs of markers have the same x coordinates. So the interpretation of that graph should be that the model is offset delayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants