In [35]:
#enlever les axes + aligner en grille
f(x,y)=x+2*y
(xmin, xmax)=(-3,3)
(ymin, ymax)=(-2,2)
import matplotlib.cm; 
maliste=matplotlib.cm.datad.keys()  #liste des couleurs pour les cmap
for mycmap in maliste:
    meslignes=contour_plot(f, (x,xmin, xmax), (y,ymin, ymax),
                      fill=False, plot_points=150,axes=False,
                      cmap=mycmap,labels=False)
    montexte=text(str(mycmap),(1,0),color="black",axes=False,
                      bounding_box={'boxstyle':'round', 'fc':'w'},
                      background_color='white')
    show(meslignes+montexte,figsize=[2,4])
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]:
 
In [ ]: