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

return figure object #4

Open
oscar-erlandsson opened this issue Feb 16, 2022 · 3 comments
Open

return figure object #4

oscar-erlandsson opened this issue Feb 16, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@oscar-erlandsson
Copy link

I ran test = t2.fit_data(verbose=1), and expected test to be the figure object, but instead I think test is None

@RasmusBC59
Copy link
Contributor

Depending on the "mode" it returns a qf.QFit instance or None. I agree that is would be nice if it always retuned the axes (not the figure) when it produces a plot

@gaozmm
Copy link
Collaborator

gaozmm commented Feb 17, 2022

When you add 'resonator_plot=True' in the function, that will plot something out.
Ex.

t5.fit_data(method='lc', resonator_plot=True, verbose=1)
plt.show()

This will give you an resonatorb fitting plot

@RasmusBC59
Copy link
Contributor

RasmusBC59 commented Feb 17, 2022

I think what Oscar asks for is that the plot is return so he can customize it afterwards

def bla()
   fig, (ax1, ax2, ax3) = plt.subplots(1, 3)
   
  return (ax1, ax2, ax3) 

@RasmusBC59 RasmusBC59 self-assigned this Feb 18, 2022
@RasmusBC59 RasmusBC59 added the enhancement New feature or request label Feb 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants