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

Plotting issue for multiple subplots in Jupyter Notebook #125

Closed
florian-wagner opened this issue Jan 11, 2018 · 0 comments
Closed

Plotting issue for multiple subplots in Jupyter Notebook #125

florian-wagner opened this issue Jan 11, 2018 · 0 comments
Assignees
Labels

Comments

@florian-wagner
Copy link
Member

florian-wagner commented Jan 11, 2018

Problem description

When plotting to a figure with multiple subplots, additional (non-pygimli) plots afterwards get netglected in Jupyter Notebook output

Your environment

Operating system: Linux
Python version: 3.5
pyGIMLi version: v1.0.5+71
Way of installation: manual compilation from source

Steps to reproduce

Tell us how to reproduce this issue. Ideally, you could paste the code that produces the error:

import pygimli as pg
import numpy as np
import matplotlib.pyplot as plt

mesh = pg.createGrid([1,2,3,4],[1,2,3,4])

x = np.linspace(0,4*np.pi)
y = np.sin(x)

fig, (ax1, ax2) = plt.subplots(2)
pg.show(mesh, ax=ax2)
ax1.plot(x,y)

Expected behavior

image

Actual behavior

image

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

No branches or pull requests

1 participant