Home > Blockchain >  ax.text2d in python (Matplotlib)
ax.text2d in python (Matplotlib)

Time:09-30

I am using text2d() to write some information on the bar3d-Diagram. The piece of code is this one:

textstr = '\n'.join((
        '{}'.format(langbezeichnung),
        'Beprobung {} - {}'.format(datum_start, datum_end),
        '{} Messstellen'.format(anzahl_mst_para),
        "BG          = {} µg/L".format(bestimmungsgrenze),
        "75% SW = {} µg/L".format(warnwert),
        "SW         = {} µg/L".format(grenzwert)))
ax.text2D(0.645, 0.74, s=textstr, transform=ax.transAxes, fontsize=12, ha='left', va='top', bbox=dict(facecolor='white', alpha=1, edgecolor='black', linewidth=0.2, boxstyle='square'))

and the result is like that: enter image description here

but i would like to have the equal signs ("=") at the same line. Could anybody help me?

Thank you Rabea

CodePudding user response:

Use enter image description here

  • Related