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

Allow user to specify colors in violin plots with constructor method#27304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 13 commits intomatplotlib:mainfromlandoskape:violin-plot-color
Jan 30, 2025
Merged
Changes from1 commit
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
c1190e6
Add color specification and pyi docs
landoskapeNov 10, 2023
4c6def1
edgecolor to linecolor, no more alpha
landoskapeJan 27, 2025
9ce5d12
Arg documentation
landoskapeJan 28, 2025
33d186b
completeness, formatting
landoskapeJan 28, 2025
9e97d6f
Default logic, docstring, straightforward testing
landoskapeJan 28, 2025
2d4c7b7
Spelling error
landoskapeJan 28, 2025
35f5c62
single "next color" for default face/line
landoskapeJan 28, 2025
8474cf1
Merge branch 'violin-plot-color' of https://github.com/landoskape/mat…
landoskapeJan 28, 2025
a206de8
clarify color specification
landoskapeJan 29, 2025
3998c6f
axes bug -- set with facecolor
landoskapeJan 29, 2025
f219c3f
direct comparison to source colors, face!=line
landoskapeJan 29, 2025
60343f5
adjust behavior for classic mode
landoskapeJan 30, 2025
e66e33a
Apply suggestions from code review
timhoffmJan 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
single "next color" for default face/line
  • Loading branch information
@landoskape
landoskape committedJan 28, 2025
commit35f5c626641c52e5ef179f1d0166407dbc352d62
6 changes: 4 additions & 2 deletionslib/matplotlib/axes/_axes.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8753,6 +8753,10 @@ def cycle_color(color, alpha=None):
return color_list

# Convert colors to chain (number of colors can be different from len(vpstats))
if facecolor is None or linecolor is None:
if not mpl.rcParams['_internal.classic_mode']:
next_color = self._get_lines.get_next_color()

if facecolor is not None:
facecolor = cycle_color(facecolor)
else:
Expand All@@ -8761,7 +8765,6 @@ def cycle_color(color, alpha=None):
if mpl.rcParams['_internal.classic_mode']:
facecolor = cycle_color('y', alpha=default_facealpha)
else:
next_color = self._get_lines.get_next_color()
facecolor = cycle_color(next_color, alpha=default_facealpha)

if linecolor is not None:
Expand All@@ -8770,7 +8773,6 @@ def cycle_color(color, alpha=None):
if mpl.rcParams['_internal.classic_mode']:
linecolor = cycle_color('r')
else:
next_color = self._get_lines.get_next_color()
linecolor = cycle_color(next_color)

# Check whether we are rendering vertically or horizontally
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp