Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Working towards stylesheets...

NotificationsYou must be signed in to change notification settings

JamesRamm/mpl_experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Working towards stylesheets...

Runrun.py to generate examples of using aStyle object rather than setting individual artists styles through get/set methods.

This experiment provides aStyle object and reimplementsLine2D to use it. This is a very bare-bones implementation!

Create aLine2D instance and create aStyle object seperately. Then add the style instance to the object:

myLine = Line2D([0,1], [0,1])myStyle = Style()myStyle.color = '#484D7A'myLine.style = myStyle

If no style is specified, it reverts to the defaults in rcParams

Style holds information on colour, linewidth/style, transparency etc...

The idea is to handle the appearance (style) and data/logic of drawing seperately.

This is just a proof of concept...there is much work to be done

About

Working towards stylesheets...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp