Open prjemian opened 1 year ago
This might be implemented better using a custom visualization application. A popular pattern now is to subscribe a kafka server to the RunEngine document stream. The run documents would be stored in a Kafka topic. A custom application would get the data from Kafka to visualize it. Separately, the databroker would get the same data and store it in MongoDB.
New windows are created by lines that call plt.subplots()
, such as in bluesky.callbacks.mpl_plotting
:
fig, ax = plt.subplots()
There are four such identical lines in this module. Perhaps they can be replace by a function that considers a user option to make a new Figure object (as the code does now) and re-use the existing Figure object as indicated by a new option. Each of these lines is embedded in a method with many lines. A local replacement (by subclassing from the ophyd code) would need to duplicate each of the methods, replacing the call to plt.subplots()
with a new method.
@strempfer asks (by email):