Skip to content

Savefig #2

@josepaulo1233

Description

@josepaulo1233

When I use ramanspy.plot.peaks it's returns an axes.

ax = ramanspy.plot.peaks(preprocessed_spectrum, prominence=0.08)

ax.savefig('test.png')

AttributeError Traceback (most recent call last)
c:\Users\Maria Clara\OneDrive\Área de Trabalho\MAC\Raman\5A.ipynb Célula 12 line 1
----> 1 ax.savefig('test.png')

AttributeError: 'Axes' object has no attribute 'savefig'

How to transform ax in a figure?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions