About 159,000 results
Open links in new tab
  1. python - matplotlib: How to buffer label text? - Stack Overflow

    Aug 21, 2014 · Here is a minimal example focusing on the text element. import matplotlib.pyplot as plt import matplotlib.patheffects as pe fig, ax = plt.subplots() txt = ax.text(0.5, 0.5, "test", size=20, color='white', path_effects=[pe.withStroke(linewidth=4, foreground="red")])

  2. Path effects guide — Matplotlib 3.10.1 documentation

    Matplotlib's patheffects module provides functionality to apply a multiple draw stage to any Artist which can be rendered via a path.Path. Artists which can have a path effect applied to them include patches.Patch, lines.Line2D, collections.Collection and even text.Text.

  3. matplotlib.pyplot.textMatplotlib 3.10.1 documentation

    matplotlib.pyplot.text# matplotlib.pyplot. text (x, y, s, fontdict = None, ** kwargs) [source] # Add text to the Axes. Add the text s to the Axes at location x, y in data coordinates, with a default horizontalalignment on the left and verticalalignment at the baseline. See Text alignment. Parameters: x, y float. The position to place the text.

  4. Add border around text with matplotlib | OS X Astro Tricks

    Dec 2, 2014 · You can add borders to text objects (and probably most other patches) with "PathEffects", see also http://matplotlib.org/examples/pylab_examples/patheffect_demo.html. Below is an example:

  5. python - Box around text in matplotlib - Stack Overflow

    Jun 13, 2013 · how is possible to make a box around text in matplotlib? I have text on three different lines and in three different colors: ax.text(2,1, 'alpha', color='red') ax.text(2,2, 'beta', color='cyan') ...

  6. Matplotlib Path Effects | Data Visualization Tutorial - LabEx

    In this lab, you learned how to use path effects in Matplotlib to add special effects to your plots. You learned how to add stroke effects to text, contour lines, and their labels, as well as how to add a shadow effect to a legend.

  7. python - How to buffer pyplot plots - Stack Overflow

    Jun 20, 2020 · I'm writing a (QML) front-end for a pyplot-like and matplotlib based MCMC sample visualisation library, and hit a small roadblock.

  8. GitHub - znstrider/highlight_text: functions to plot text with ...

    This package provides a HighlightText class and two wrapper functions that allow you to plot text with <highlighted substrings> in matplotlib: ax_text for plotting onto an axes in data coordinates. fig_text for plotting onto the figure in figure coordinates.

  9. How to create advanced annotations in Matplotlib - The Python …

    In this post, we will see how to use this package to create advanced annotations like customizing background color, creating path effects and adding title and subtitle in one annotation. In data visualization, annotations have a major role in available …

    Missing:

    • Buffer

    Must include:

  10. Path effects guide — Matplotlib 2.0.2 documentation

    May 10, 2017 · Matplotlib’s patheffects module provides functionality to apply a multiple draw stage to any Artist which can be rendered via a Path. Artists which can have a path effect applied to them include Patch, Line2D, Collection and even Text.

Refresh