Skip to content
Snippets Groups Projects
Commit c37369ef authored by m-guberina's avatar m-guberina
Browse files

this is it for logplotting on the real branch, just spawn 1 set of plots and don't resize it

parent 08a34a51
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -304,7 +304,9 @@ def manipulatorComparisonVisualizer(args, model, collision_model, visual_model, ...@@ -304,7 +304,9 @@ def manipulatorComparisonVisualizer(args, model, collision_model, visual_model,
# get arguments that way. # get arguments that way.
# but otherwise i can't pass arguments to that. # but otherwise i can't pass arguments to that.
# even if i could with partial, i can't return them, # even if i could with partial, i can't return them,
# so no cigar from that # so no cigar from that.
# NOTE this is being tried out in realtimelogplotter branch
# there is no successful re-drawing here.
def logPlotter(args, log, cmd_queue, ack_queue): def logPlotter(args, log, cmd_queue, ack_queue):
""" """
logPlotter logPlotter
...@@ -389,8 +391,8 @@ def logPlotter(args, log, cmd_queue, ack_queue): ...@@ -389,8 +391,8 @@ def logPlotter(args, log, cmd_queue, ack_queue):
axes_and_updating_artists[data_key].artists.set_xdata([time_index]) axes_and_updating_artists[data_key].artists.set_xdata([time_index])
axes_and_updating_artists[data_key].ax.draw_artist(axes_and_updating_artists[data_key].artists) axes_and_updating_artists[data_key].ax.draw_artist(axes_and_updating_artists[data_key].artists)
# NOTE: this is stupid, i just want to catch the resize event # NOTE: this is stupid, i just want to catch the resize event
if not (counter % 50 == 0): #if not (counter % 50 == 0):
#if True: if True:
print(counter) print(counter)
canvas.blit(fig.bbox) canvas.blit(fig.bbox)
canvas.flush_events() canvas.flush_events()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment