plot ( data, data, 'k+' ) # k+ is short for color='black', marker='+', linestyle='' Look plt. plot ( data, data, marker = '+', color = 'black', linestyle = '-' ) plt. labels: This parameter contains labels to place. If an empty list is passed as an argument then it will removes all xticks. update () # Points connected with a line plt. import numpy as np import matplotlib.pyplot as plt data np.random.rand (100) for i in range (3) plt.boxplot (data) plt.xticks ( 1, 2, 3, 'mon', 'tue', 'wed') edited to remove pylab bc pylab is a convenience module that bulk imports matplotlib.pyplot (for plotting) and numpy (for mathematics and working with arrays) in a. (ticksNone, labelsNone, kwargs) Parameters: This method accept the following parameters that are described below: ticks: This parameter is the list of xtick locations. rcParams = 6, 6 # or this way # Update font size plt. ![]() Share Improve this answer answered at 16:35 tdy 27. font.family, size, line color, line width etc # they are automatically Run and startup and they Configure your stuff = rc # This will set figsize for all other plots also plt. df.plot (y'A').setxticks (df.index, df.C) Note that plt.xticks always had a labels param, so this change just unifies the Axes and pyplot APIs. ![]() # with rcParams you can conf your figure, e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |