8000 well.plot not displaying (pycharm community edition) · Issue #232 · agilescientific/welly · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
well.plot not displaying (pycharm community edition) #232
Open
@JackofAllTrades01

Description

@JackofAllTrades01

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 (w 5B84 hich 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0