Franck
Franck

Reputation: 35

Size of EditableGraph

In NetGraph's EditableGraph, the drawing figure appears to be enclosed in a square. How can we extend the drawing limit of the figure along the horizontal-axis? Thank you.

Upvotes: 0

Views: 13

Answers (1)

Paul Brodersen
Paul Brodersen

Reputation: 13021

As with every matplotlib figure, you can change the axis limits in various ways:

import matplotlib.pyplot as plt

from netgraph import EditableGraph

fig, ax = plt.subplots()
g = EditableGraph(..., ax=ax)
ax.set_xlim(-2, 3)

Upvotes: 0

Related Questions