Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/editor/artists.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from matplotlib.collections import LineCollection
from typing import List, Tuple
from matplotlib.backend_bases import ResizeEvent
from matplotlib.pyplot import setp

# from .hull_generator import calc_hull, parse_solution_to_editor_hull
from ..generator.hull_generator import calc_hull, parse_solution_to_editor_hull
Expand Down Expand Up @@ -619,7 +620,7 @@ def show_labels(self, ax: Axes):

# ------------------------------ DRAW DEFINITION ----------------------------- #

def draw(self, ax: Axes) -> None:
def draw(self, ax: Axes, auto_generation: bool = False) -> None:
# ax.clear() #maybe not needed, it removes info text

# draw points
Expand Down Expand Up @@ -663,6 +664,9 @@ def draw(self, ax: Axes) -> None:
ax.set_xlim(-190, 190)
ax.set_ylim(-150, 150)

if auto_generation:
setp(ax, frame_on=False)

plt.draw()
logging.info(f"State redraw")

Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def draw_maps(raw_data: Union[str, Experiment],

st = State(state_dict)
StateLinker.link_state(st)
st.draw(ax)
st.draw(ax, True)

bbox = ax.get_tightbbox().transformed(fig.dpi_scale_trans.inverted())

Expand Down
Loading