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

well.plot not displaying (pycharm community edition) #232

Open
JackofAllTrades01 opened this issue Aug 15, 2023 · 0 comments
Open

well.plot not displaying (pycharm community edition) #232

JackofAllTrades01 opened this issue Aug 15, 2023 · 0 comments

Comments

@JackofAllTrades01
Copy link

Hi there,

Exploring some tools for log analysis in the future and came across Welly. Looks amazing! Trying out some of the base features and I cannot get it to display a multiple track plot (which looks like the easiest thing to do!). Simple enough code to start with:

import welly
from welly import Well
import matplotlib.pyplot as plt

print(welly.version)

well = Well.from_las('c:/temp/las/demo.las')

header = well.header
location = well.location
latitude = well.location.latitude
longitude = well.location.longitude
curve_names = well._get_curve_mnemonics()

print (curve_names)
print (latitude)
print (longitude)

That works fine, and yields me a version (0.5.2) and the curves available in the file, as well as lat and long, so definitely connected ok.

0.5.2
['DTCO', 'DTRP', 'DTSM', 'DTTP', 'GR', 'TNPH', 'A16H', 'A16L', 'A22H', 'A22L', 'A28H', 'A28L', 'A34H', 'A34L', 'A40H', 'A40L', 'DRHB', 'DRHL', 'DRHO', 'DRHR', 'DRHU', 'HORD', 'P16H', 'P16L', 'P22H', 'P22L', 'P28H', 'P28L', 'P34H', 'P34L', 'P40H', 'P40L', 'PEB', 'PEF', 'PEL', 'PER', 'PEU', 'RHOB', 'ROBB', 'ROBL', 'ROBR', 'ROBU', 'VERD']
58 16 3.174 N
01 14 8.927 E

So far so good. If I try to plot a single track, that works well too:

gr=well.data['GR']
gr.plot()
plt.show()

Yields
image

It is when I try to do the multi track plot things fail.

datatoplot = ['MD', 'GR', 'HORD', 'RHOB', ['ROBB', 'ROBU'], 'MD']
well.plot(tracks=datatoplot)
plt.show()

yields nothing, even the simpler:

well.plot()
plt.show()

does nothing.

This is so simple, I am sure I am doing something very dumb, but I cannot see it. Any thoughts?

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

1 participant