Skip to content

Does a "clear(figure)" instance exists ? #2111

@Sarenrenegade

Description

@Sarenrenegade

Description of the desired feature

Hello, I'm currently working on a program designed to make an anilation of seismic wave propagation using pygmt :
Basically with seismograms on Z component from many stations of an earthquake I have the displacement at every time step.
Since there is no "pygmt.animate ()" I decided to plot multiple maps for each steps and then make the animation with opencv.
It works great when I have few figures to plot, but for the animation to be smooth (over 1000 images) my computer runs out of memory. My current workaround is to launch the program again from the last step.
Is there a way to use plain gmt in pygmt to end the session/close a figure to free memory ?
The idea being to have all the process from downloading seismograms to making the animation in python I don't want to use plain gmt in cmd.
I also don't want to use cartopy: I find pygmt easier to work with.
Thanks

Are you willing to help implement and maintain this feature? Maybe

I'm not really sure I have the skills, I rarely use python the "right" way (with objects not sequentially) and I have never worked on a wrapper , but I'm willing to help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions