Skip to content

xkcd plots with background color have white outlines for text and axes spines #3843

Closed
@ilivni

Description

@ilivni

Hi - I was messing butchering a plot using a solarized color theme (similar to ggplot2) and found that the text and the axes spines had white padding around them. Example of chart and code below: (if this is incomplete or incorrect please let me know)

Chart:

whitepadding

Code:

base3='#fdf6e3'

with plt.xkcd():
      some plot data ...
      plt.title(title, color=magenta, size=14)
      plt.xticks(rotation=45)
      ax.spines['bottom'].set_color(base3)
      ax.spines['top'].set_color(base3)
      ax.spines['left'].set_color(base3)
      ax.spines['right'].set_color(base3)
      ax.grid(False)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions