plots in a subfunction /u/OkBoy57 Python Education

I need your help concerning an easy task. I defined a function create_plot like this:

import matplotlib.pyplot as plt def create_plot(df): plt.plot(data1, color="black", linewidth=0.5) plt.show() plt.plot(data2, color="black", linewidth=0.5) plt.show() 

the execution create_plot(data) stops at every plt.show(). If I use

 plt.show(block= False ) 

no plot window is shown.

submitted by /u/OkBoy57
[link] [comments]

​r/learnpython I need your help concerning an easy task. I defined a function create_plot like this: import matplotlib.pyplot as plt def create_plot(df): plt.plot(data1, color=”black”, linewidth=0.5) plt.show() plt.plot(data2, color=”black”, linewidth=0.5) plt.show() the execution create_plot(data) stops at every plt.show(). If I use plt.show(block= False ) no plot window is shown. submitted by /u/OkBoy57 [link] [comments] 

I need your help concerning an easy task. I defined a function create_plot like this:

import matplotlib.pyplot as plt def create_plot(df): plt.plot(data1, color="black", linewidth=0.5) plt.show() plt.plot(data2, color="black", linewidth=0.5) plt.show() 

the execution create_plot(data) stops at every plt.show(). If I use

 plt.show(block= False ) 

no plot window is shown.

submitted by /u/OkBoy57
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *