question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

labels not working

See original GitHub issue

The following code does not produce labels for me. I get the plot, but without any labels.

scale, fontsize = 1, 12
import matplotlib.pyplot as pyplot
figure, ax = pyplot.subplots()
tax = ternary.TernaryAxesSubplot(ax=ax)

tax.set_title("Evolution of 6-6-3 signaler games under ambiguity", fontsize=fontsize)
tax.left_axis_label("Left label $\\alpha^2$", fontsize=fontsize)
tax.right_axis_label("Right label $\\beta^2$", fontsize=fontsize)
tax.bottom_axis_label("Bottom label $\\Gamma - \\Omega$", fontsize=fontsize)

tax.boundary(color="black", linewidth=2.0)
tax.gridlines(multiple=0.1, color="blue")

tax.plot( ((0.1,0.8,0.1),(0.8,0.1,0.1)) )

#tax.scatter( x, marker='s')
tax.legend()
tax.ticks(axis='lbr', color="black", linewidth=1, multiple=0.1)

tax.show()

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:1
  • Comments:24 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
hareyakanacommented, Nov 29, 2015

matpotlib-1.5 ipython-4.0.1 spyder-2.3.7

by adding _redraw_labels, i manage to get the labels for the 3 axis. not sure if this is intended

d.set_title(r"source flavour composition $\nu_e,\nu_\mu,\nu_\tau$",fontsize=20)
d.left_axis_label(r"$|\nu_e|$",fontsize=15)
d.right_axis_label(r"$|\nu_\mu|$",fontsize=15)
d.bottom_axis_label(r"$|\nu_\tau|$",fontsize=15)
d._redraw_labels()
0reactions
marcharpercommented, Dec 20, 2018

For now my recommendation is to use _redraw_labels(). Unfortunately we’re not also wrapping fig because the solution in that case would be to override savefig to always redraw first. And that won’t work for tax because it could be part of a larger plot or there could be multiple figures.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Label Printing - Online Labels
If your labels keep getting stuck, we suggest changing your material setting. Open your printer dialog box and click on "Advanced Options." ...
Read more >
How to Fix Misaligned Labels Templates?
Check your printer settings ; Decrease the font size or reduce the amount of text; Make sure you are using the correct labels....
Read more >
label not working with checkbox - Stack Overflow
I believe the label element links to the id attribute, not the name attribute. Try this: <form> <input type="checkbox" name="showRatings" id="showRatings" ...
Read more >
Error message when you try to create a label in Word
When you try to create a label in Microsoft Office Word 2007 or Microsoft Word 2010, you receive the following error message: There...
Read more >
Value labels not working - Forums - IBM Support
I generated a frequency data set with 16 variables. I have entered value labels but I am not able to: 1. toggle to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found