BCDA-APS / use_bluesky

Tools to help APS use the Bluesky Framework (https://blueskyproject.io/)
8 stars 3 forks source link

How to plot (x,y) data from a run using MatPlotLib? #105

Closed prjemian closed 3 years ago

prjemian commented 3 years ago

A user asks

I have a databroker catalog with a run (cat[-1]) of detector vs. motor position. The detector data can be plotted easily: cat[-1].primary.read()["D3"].plot() How to plot D3 vs motor position?

prjemian commented 3 years ago

@mrakitin suggests

Get the arrays separately, and use plt.plot(…)

but the user asks

How do I get the arrays? I have no idea how to extract things from the databroker.

prjemian commented 3 years ago

This is a great topic for a simple notebook.