ptypy.utils.plot_client.PlotClient#
- class ptypy.utils.plot_client.PlotClient(client_pars=None, in_thread=False)#
Bases:
objectA client that connects and continually gets the data required for plotting. Note: all data is transferred as soon as the server provides it. This might be a waste of bandwidth if all that is required is a client that plots “on demand”…
This PlotClient doesn’t actually plot.
- __init__(client_pars=None, in_thread=False)#
Create a client and attempt to connect to a running reconstruction server.
Methods
__init__([client_pars, in_thread])Create a client and attempt to connect to a running reconstruction server.
Disconnect from reconstruction server.
get_data()Thread-safe way to copy data buffer.
start()This needs to be run for the thread to initialize.
stop()Stop loop plot
Attributes
ACTIVEDATASTOPPEDTrue only if new data were acquired since last time checked.
- disconnect()#
Disconnect from reconstruction server.
- get_data()#
Thread-safe way to copy data buffer. :return:
- start()#
This needs to be run for the thread to initialize.
- property status#
True only if new data were acquired since last time checked.
- stop()#
Stop loop plot