-
Notifications
You must be signed in to change notification settings - Fork 224
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
Possible text bug with fig.meca when plotting from a file #1367
Comments
It's not a bug. For text files with a header like
you have to tell GMT or PyGMT to skip the header. |
@PaulWessel I'm wondering if You can run the following command to reproduce the issue. You will see the "header line" appear at the lower left corner of the map:
But, it seems
|
This is caused by an upstream issue and has been fixed by GenericMappingTools/gmt#5427. |
So running Not sure if we need to add a test for this (probably not), but I think we can close this in PyGMT v0.6.0 once we bump the minimum GMT version to 6.3.0, agree? |
I think we can close the issue without adding a test. |
Description of the problem
I think I may have run across a bug with fig.meca when attempting to plot from a file. Column names are being plotted in the bottom left corner, and the issue disappears when column names are removed from the file.
Full code that generated the error
System information
PyGMT information:
version: v0.4.0
System information:
python: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)]
executable: C:\Users\USER\AppData\Local\Programs\Python\Python39\python.exe
machine: Windows-10-10.0.19043-SP0
Dependency information:
numpy: 1.21.0
pandas: 1.2.5
xarray: 0.18.2
netCDF4: 1.5.7
packaging: 20.9
ghostscript: 9.54.0
gmt: 6.2.0
GMT library information:
binary dir: C:/Users/USER/AppData/Local/Programs/Python/Python39
cores: 4
grid layout: rows
library path: c:/programs/gmt6/bin/gmt_w64.dll
padding: 2
plugin dir: c:/programs/gmt6/bin/gmt_plugins
share dir: c:/programs/gmt6/share
version: 6.2.0
My data:
selected_fm.csv
My map output:
The text was updated successfully, but these errors were encountered: