# Path: pymoku/_frame_instrument.py
# class FrameQueue(Queue):
# class FrameBasedInstrument(_input_instrument.InputInstrument,
#                            _instrument.MokuInstrument):
#     def put(self, item, block=True, timeout=None):
#     def get(self, block=True, timeout=None):
#     def _init(self, maxsize):
#     def __init__(self):
#     def _set_frame_class(self, frame_class, **frame_kwargs):
#     def _flush(self):
#     def _set_buffer_length(self, buflen):
#     def _get_buffer_length(self):
#     def set_defaults(self):
#     def get_data(self, timeout=None, wait=True):
#     def set_framerate(self, fr):
#     def get_realtime_data(self, timeout=None, wait=True):
#     def _set_running(self, state):
#     def _make_frame_socket(self):
#     def _frame_worker(self):


import struct
from pymoku import _frame_instrument
            return

        scales = self._scales[self._stateid]
        ts = scales['time_step']
        tscale_str, tscale_const = self._get_timescale(ts * _OSC_SCREEN_WIDTH)

        return {'xaxis': '%.1f %s' % (x * tscale_const, tscale_str),
                'xcoord': '%.3f %s' % (x * tscale_const, tscale_str)}

    def get_xaxis_fmt(self, x, pos):
        """ Function suitable to use as argument to a matplotlib FuncFormatter
            for X (time) axis """
        return self._get_xaxis_fmt(x, pos)['xaxis']

    def get_xcoord_fmt(self, x):
        """ Function suitable to use as argument to a matplotlib FuncFormatter
            for X (time) coordinate """
        return self._get_xaxis_fmt(x, None)['xcoord']

    def _get_yaxis_fmt(self, y, pos):
        return {'yaxis': '%.1f %s' % (y, 'V'), 'ycoord': '%.3f %s' % (y, 'V')}

    def get_yaxis_fmt(self, y, pos):
        """ Function suitable to use as argument to a matplotlib FuncFormatter
            for Y (voltage) axis """
        return self._get_yaxis_fmt(y, pos)['yaxis']

    def get_ycoord_fmt(self, y):
        """ Function suitable to use as argument to a matplotlib FuncFormatter
            for Y (voltage) coordinate """

# Path: pymoku/_frame_instrument.py
# class FrameQueue(Queue):
# class FrameBasedInstrument(_input_instrument.InputInstrument,
#                            _instrument.MokuInstrument):
#     def put(self, item, block=True, timeout=None):
#     def get(self, block=True, timeout=None):
#     def _init(self, maxsize):
#     def __init__(self):
#     def _set_frame_class(self, frame_class, **frame_kwargs):
#     def _flush(self):
#     def _set_buffer_length(self, buflen):
#     def _get_buffer_length(self):
#     def set_defaults(self):
#     def get_data(self, timeout=None, wait=True):
#     def set_framerate(self, fr):
#     def get_realtime_data(self, timeout=None, wait=True):
#     def _set_running(self, state):
#     def _make_frame_socket(self):
#     def _frame_worker(self):


# Path: pymoku/_oscilloscope_data.py
import struct
from pymoku import _frame_instrument

            return

        scales = self._scales[self._stateid]
        ts = scales['time_step']
        tscale_str, tscale_const = self._get_timescale(ts * _OSC_SCREEN_WIDTH)

        return {'xaxis': '%.1f %s' % (x * tscale_const, tscale_str),
                'xcoord': '%.3f %s' % (x * tscale_const, tscale_str)}

    def get_xaxis_fmt(self, x, pos):
        """ Function suitable to use as argument to a matplotlib FuncFormatter
            for X (time) axis """
        return self._get_xaxis_fmt(x, pos)['xaxis']

    def get_xcoord_fmt(self, x):
        """ Function suitable to use as argument to a matplotlib FuncFormatter
            for X (time) coordinate """
        return self._get_xaxis_fmt(x, None)['xcoord']

    def _get_yaxis_fmt(self, y, pos):
        return {'yaxis': '%.1f %s' % (y, 'V'), 'ycoord': '%.3f %s' % (y, 'V')}

    def get_yaxis_fmt(self, y, pos):
        """ Function suitable to use as argument to a matplotlib FuncFormatter
            for Y (voltage) axis """
        return self._get_yaxis_fmt(y, pos)['yaxis']

    def get_ycoord_fmt(self, y):
        """ Function suitable to use as argument to a matplotlib FuncFormatter
            for Y (voltage) coordinate """

        return self._get_yaxis_fmt(y, None)['ycoord']