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.

ArcPlot figure too small and with lots of space

See original GitHub issue
  • nxviz version: 0.6.2
  • Python version: 3.6.10
  • Jupyter: 1.0.0
  • Operating System: Windows 10 Home

Description

Hi! I’m a bit unsatisfied with the figure size in Jupyter Notebook and the white space the plot produce. I have tried to change the figure size but the result is not very nice.

What I Did

# 1 - without figure size setting
a = ArcPlot(K, 
            edge_width='weight', edge_color='weight',
           node_size='betweenness')
a.draw()
plt.show()

# 2 - with figure size setting
a = ArcPlot(K, figsize=(30,30), 
            edge_width='weight', edge_color='weight',
           node_size='betweenness')
a.draw()
plt.show()

Result 1: grafik

Result2: grafik

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ericmjlcommented, Mar 30, 2020

@kwbln I went into the source code and modified the implementation of draw(). For the time being, I suspect that just using plt.tight_layout() and plt. autoscale() is the best solution available (even though it may still result in some excessive whitespace).

This coming weekend, I’ll see how pushing the two lines of code into the ArcPlot changes things (or if it even does change things).

0reactions
kwblncommented, Mar 29, 2020

I will upload my “Kangaroo Network” to Github and give you access. I’m following along your DataCamp course 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

plots were too small while I tried to plot multiple graphics
Description of issue - I used mfrow code to draw a multiple graphics, but the axes were too small and even can't see...
Read more >
arc plot gpu plotting 0.6 release, please help test and ... - Reddit
Since this is closed source I am trying to figure out how to run it in a docker container that is able to...
Read more >
Story Arcs: Definitions and Examples of the 6 Shapes of Stories
A story arc, or narrative arc, describes the shape of the change in value, whether rise or fall, over the course of the...
Read more >
How to use the nxviz.plots.ArcPlot function in nxviz - Snyk
ArcPlot examples, based on popular ways it is used in public projects. ... Displays a NetworkX barbell graph to screen using a ArcPlot....
Read more >
Character Arc Plot & Kurt Vonnegut's Story Shapes
Usually, the main focus is on the difference between the beginning and end state of the character, so that the overall shape of...
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