import os import matplotlib # Force matplotlib to not use any Xwindows backend. matplotlib.use('Agg') import matplotlib.pyplot as plt squares = [1, 4, 9, 16, 25] plt.plot(squares) #plt.show() #Cloud9 env if __name__ == '__main__': plt.show(host=os.getenv('IP', '0.0.0.0'),port=int(os.getenv('PORT', 8080)), debug=True)
import matplotlib.pyplot as plt squares = [1, 4, 9, 16, 25] plt.plot(squares) plt.show()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)