How PlotextPlot themes and auto-theming work
mainThe PlotextPlot widget supports standard Plotext themes. However, because ANSI colors can look inconsistent across different terminals, textual-plotext provides theme copies prefixed with textual- (e.g., textual-theme-name) that use full RGB coloring for consistent rendering.
By default, the widget uses two special themes:
textual-design-darktextual-design-light
It automatically switches between these when your Textual application toggles between dark and light mode. To disable this automatic switching, set the auto_theme property of your plot to False.
# Example of disabling auto-theme
plt = self.query_one(PlotextPlot).plt
plt.auto_theme = False