What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-16 22:40:01
draw a marker in basemap python
import matplotlib.pyplot as plt import numpy from mpl_toolkits.basemap import Basemap # 1. get data lon = [-122.2416355, -122.2977475, -121.204408, -118.3272612, -119.0194639] lat = [37.7652076, 37.88687, 40.2362738, 33.34221, 35.3738712] crowd = [8.0, ... Add solution -
Python 2021-09-16 22:07:02
how to check if y axis is inverted matplotlib
import matplotlib.pyplot as plt # ('gca' stands for get current axes) # To check whether the y axis is inverted: plt.gca().yaxis_inverted() # To check whether the x axis is inverted: plt.gca().xaxis_inverted() """ Both functions return... Add solution -
-
Python 2021-09-16 15:45:02
mathplolib avec date
import matplotlib.pyplot as plt data = [49, 20, 37, 28, 20] jours = ["14/02/2016", "15/02/2016", "17/02/22016", "28/05/2016", "15/07/2016"] plt.plot(data) #1 seul argument: 'data' plt.x... Add solution -