Skip to content

Commit

Permalink
Update simple plotter example
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Jan 7, 2023
1 parent 44b5c91 commit 1e1c9e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
!**/Build/CMakeLists.txt
!**/Build/CMAKE_README.txt

# 3. Python files

*.pyc
*checkpoint.ipynb
3 changes: 3 additions & 0 deletions Resources/python_client/simple_plotter_zmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def startup(self):
print("starting plot")
self.figure, self.ax = plt.subplots()
plt.subplots_adjust(left=0.1, bottom=0.2)
self.ax.set_facecolor('#001230')
axcolor = 'lightgoldenrodyellow'
axylim = plt.axes([0.1, 0.05, 0.65, 0.03], facecolor=axcolor)
sylim = Slider(axylim, 'Ylim', 1, 600, valinit=ylim0)
Expand All @@ -56,6 +57,8 @@ def update(val):
sylim.on_changed(update)

self.hl, = self.ax.plot([], [])
self.hl.set_color('#d92eab')
self.hl.set_linewidth(0.5)
self.ax.set_autoscaley_on(True)
self.ax.margins(y=0.1)
self.ax.set_xlim(0., 1)
Expand Down

0 comments on commit 1e1c9e1

Please sign in to comment.