SourceForge logo
SourceForge logo
Menu

matplotlib-users

How set grid line properties like solid lines for regular plot?
>>>>> "Christian" == Christian Seberino <seb...@sp...> writes:
 Christian> How set grid line properties like solid lines for
 Christian> regular plot?
You can set the defaults in your rc file with the foloowing properties
 grid.color : black # grid color
 grid.linestyle : : # dotted
 grid.linewidth : 0.5 # in points
or you can set the properties in a script by getting a list of the x
and y grid lines
 glines = ax.get_xgridlines() + ax.get_ygridlines()
 setp(glines, linestyle='-', color=0.5, linewidth=1)
JDH
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /