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

Space on labels #388

Closed
marcelobianchi opened this issue Jan 9, 2020 · 2 comments
Closed

Space on labels #388

marcelobianchi opened this issue Jan 9, 2020 · 2 comments

Comments

@marcelobianchi
Copy link

Dear Developers & Users,

When plotting data with labels to later building up a legend, the "labels" cannot have spaces. For example, this code:

F = pygmt.Figure()
F.plot(0,0,B=["x1","y1"],J="X10",S="c0.2",R=[-1,1,-1,1], l = "Super Point")
F.legend(None)
F.show()

Fails with the following error code:

....

    498             raise GMTCLibError(
    499                 "Module '{}' failed with status code {}:\n{}".format(
--> 500                     module, status, self._error_message
    501                 )
    502             )

GMTCLibError: Module 'plot' failed with status code 71:
plot [ERROR]: Error for input file: No such file (Point')

When a label is a string without spaces, everything works as expected. This was last tested on version #af26f4.

Kind regards,

Mb.

@welcome
Copy link

welcome bot commented Jan 9, 2020

👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct.

@seisman
Copy link
Member

seisman commented Jan 9, 2020

Duplicate of #247. I think currently you have to use l='"Super Point"'.

@seisman seisman closed this as completed Jan 10, 2020
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

2 participants