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.

Function limit_size() Works Now Only Before plot_size()

See original GitHub issue

Hey

limit_size() no longer seems to be working. If i set it to False, False the plot will still be limited to the terminal size. In the previous version this worked to create bigger plots. Because I am not running it from a terminal it will always be limited to 80x24 now

#!/usr/bin/env python
import plotext as plt
y = plt.sin()
plt.scatter(y)
plt.plot_size(200, 300)
plt.limit_size(False,False)
plt.title("Scatter Plot")
plt.show() 

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
piccolomocommented, Sep 2, 2022

Hi @Neo-Oli ,

I finally updated plotext including the changes you asked for.

The new version is available on GitHib and soon also on PyPi. To install follow the indications here.

Your changes are documented here.

Thanks a lot for your inputs and all the best, Savino

1reaction
Neo-Olicommented, Apr 25, 2022

Ah, I know what the problem is. It is now depends on the order of operations.

This will create a big plot:

plt.limitsize(False,False)
plt.plotsize(200, 300)

And this will create the limited plot:

plt.plotsize(200, 300)
plt.limitsize(False,False)

In the previous version both snippets resulted in the same output.

Perhaps this should be documented.

Read more comments on GitHub >

github_iconTop Results From Across the Web

figsize in matplotlib is not changing the figure size? [duplicate]
Try setting up the size of the figure before assigning what to plot, as below: import matplotlib.pyplot as plt %matplotlib inline ...
Read more >
Setting the size of a figure in matplotlib and seaborn
We can set the size by adding a figsize keyword argument to our pandas plot() function. The value has to be a tuple...
Read more >
Excel specifications and limits - Microsoft Support
In Excel 2010, the maximum worksheet size is 1048576 rows by 16384 columns. ... Workbook size is limited only by available memory and...
Read more >
Chapter 4. Visualization with Matplotlib - O'Reilly
plot() function using IPython's help tools (see “Help and Documentation in IPython”). Adjusting the Plot: Axes Limits. Matplotlib does a decent job of...
Read more >
how to set graph size - MATLAB Answers - MathWorks
Set the 'Position' property on the current figure (gcf). Specify the position as a vector of the form “[x0 y0 width height]”, where...
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