Skip to content

Space on labels #388

@marcelobianchi

Description

@marcelobianchi

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.

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