Open kwinkunks opened 2 years ago
Could you share the reproduction steps of this bug, which file is this? What is the expected output?
If I run tests/test_curve_2d_plot()
I get:
And if I load P-129_out.LAS, select 'GR' and run:
curve.plot_2d(cmap='viridis', curve=True, lw=0.3, edgecolor='k')
I get:
Hm, good point -- and I didn't notice that I was plotting (200 - gr)
there. Still, seems like the second plot here should produce something:
w = Well.from_las('data/P-129_out.LAS')
gr = w.data['GR']
# This works:
gr.plot_2d(cmap='viridis', curve=True, lw=0.3, edgecolor='k')
# This doesn't:
(200 - gr).plot_2d(cmap='viridis', curve=True, lw=0.3, edgecolor='k')
This also happens in 0.4.10
, it has to do with the position when clipping the imshow
:
.
The extend of the imshow needs to be from min(curve_data)
up to max(curve_data)
when plot_curve = True
. I've created a PR with a fix.
Getting some other funny plot2d issues, this is version 4.10
@ThomasMGeo could you share a the reproduction steps that lead you to this error?