Skip to content

Commit

Permalink
Generated gh-pages for commit 08013df
Browse files Browse the repository at this point in the history
Author: Jens Hedegaard Nielsen <[email protected]>

    Make Default colormap configurable (#825)
  • Loading branch information
Documentation Bot committed Nov 3, 2017
1 parent b22bd96 commit 6a0f1eb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
4 changes: 3 additions & 1 deletion _modules/qcodes/plots/pyqtgraph.html
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,12 @@ <h1>Source code for qcodes.plots.pyqtgraph</h1><div class="highlight"><pre>
<span class="k">def</span> <span class="nf">_line_data</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">):</span>
<span class="k">return</span> <span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">_clean_array</span><span class="p">(</span><span class="n">arg</span><span class="p">)</span> <span class="k">for</span> <span class="n">arg</span> <span class="ow">in</span> <span class="p">[</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">]</span> <span class="k">if</span> <span class="n">arg</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">]</span>

<span class="k">def</span> <span class="nf">_draw_image</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">subplot_object</span><span class="p">,</span> <span class="n">z</span><span class="p">,</span> <span class="n">x</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">y</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">cmap</span><span class="o">=</span><span class="s1">&#39;hot&#39;</span><span class="p">,</span>
<span class="k">def</span> <span class="nf">_draw_image</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">subplot_object</span><span class="p">,</span> <span class="n">z</span><span class="p">,</span> <span class="n">x</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">y</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">cmap</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">zlabel</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="n">zunit</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="k">if</span> <span class="n">cmap</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">cmap</span> <span class="o">=</span> <span class="n">qcodes</span><span class="o">.</span><span class="n">config</span><span class="p">[</span><span class="s1">&#39;gui&#39;</span><span class="p">][</span><span class="s1">&#39;defaultcolormap&#39;</span><span class="p">]</span>
<span class="n">img</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">rpg</span><span class="o">.</span><span class="n">ImageItem</span><span class="p">()</span>
<span class="n">subplot_object</span><span class="o">.</span><span class="n">addItem</span><span class="p">(</span><span class="n">img</span><span class="p">)</span>

Expand Down
4 changes: 3 additions & 1 deletion _modules/qcodes/plots/qcmatplotlib.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h1>Source code for qcodes.plots.qcmatplotlib</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">numpy.ma</span> <span class="k">import</span> <span class="n">masked_invalid</span><span class="p">,</span> <span class="n">getmask</span>

<span class="kn">from</span> <span class="nn">.base</span> <span class="k">import</span> <span class="n">BasePlot</span>

<span class="kn">import</span> <span class="nn">qcodes.config</span>

<div class="viewcode-block" id="MatPlot"><a class="viewcode-back" href="../../../api/generated/qcodes.plots.qcmatplotlib.MatPlot.html#qcodes.plots.qcmatplotlib.MatPlot">[docs]</a><span class="k">class</span> <span class="nc">MatPlot</span><span class="p">(</span><span class="n">BasePlot</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
Expand Down Expand Up @@ -468,6 +468,8 @@ <h1>Source code for qcodes.plots.qcmatplotlib</h1><div class="highlight"><pre>
<span class="c1"># to check for them.</span>
<span class="k">return</span> <span class="kc">False</span>

<span class="k">if</span> <span class="s1">&#39;cmap&#39;</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">kwargs</span><span class="p">:</span>
<span class="n">kwargs</span><span class="p">[</span><span class="s1">&#39;cmap&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="n">qcodes</span><span class="o">.</span><span class="n">config</span><span class="p">[</span><span class="s1">&#39;gui&#39;</span><span class="p">][</span><span class="s1">&#39;defaultcolormap&#39;</span><span class="p">]</span>
<span class="k">if</span> <span class="n">x</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">and</span> <span class="n">y</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="c1"># If x and y are provided, modify the arrays such that they</span>
<span class="c1"># correspond to grid corners instead of grid centers.</span>
Expand Down
4 changes: 2 additions & 2 deletions api/generated/qcodes.instrument_drivers.signal_hound.html
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this

<dl class="attribute">
<dt id="qcodes.instrument_drivers.signal_hound.USB_SA124B.SignalHound_USB_SA124B.saStatus">
<code class="descname">saStatus</code><em class="property"> = {'saInvalidParameterErr': -4, 'saExternalReferenceNotFound': -89, 'saInvalidModeErr': -7, 'saTooManyDevicesErr': -5, 'saOvenColdErr': -20, 'saCompressionWarning': 2, 'saDeviceNotIdleErr': -9, 'saInvalidScaleErr': -94, 'saDeviceNotFoundErr': -8, 'saUnknownErr': -666, 'saNoError': 0, 'saNullPtrErr': -1, 'saInternetErr': -12, 'saNoCorrections': 1, 'saNotConfiguredErr': -6, 'saDeviceNotConfiguredErr': -6, 'saTrackingGeneratorNotFound': -10, 'saParameterClamped': 3, 'saInvalidDeviceErr': -2, 'saUSBCommErr': -11, 'saBandwidthErr': -91, 'saInvalidDetectorErr': -95, 'saDeviceNotOpenErr': -3, 'saFrequencyRangeErr': -99, 'saBandwidthClamped': 4}</em><a class="headerlink" href="#qcodes.instrument_drivers.signal_hound.USB_SA124B.SignalHound_USB_SA124B.saStatus" title="Permalink to this definition"></a></dt>
<code class="descname">saStatus</code><em class="property"> = {'saFrequencyRangeErr': -99, 'saDeviceNotIdleErr': -9, 'saInvalidDetectorErr': -95, 'saUSBCommErr': -11, 'saDeviceNotOpenErr': -3, 'saInvalidModeErr': -7, 'saDeviceNotConfiguredErr': -6, 'saInvalidScaleErr': -94, 'saCompressionWarning': 2, 'saInvalidParameterErr': -4, 'saNoCorrections': 1, 'saBandwidthErr': -91, 'saUnknownErr': -666, 'saBandwidthClamped': 4, 'saInternetErr': -12, 'saTooManyDevicesErr': -5, 'saOvenColdErr': -20, 'saNotConfiguredErr': -6, 'saInvalidDeviceErr': -2, 'saExternalReferenceNotFound': -89, 'saParameterClamped': 3, 'saDeviceNotFoundErr': -8, 'saNoError': 0, 'saNullPtrErr': -1, 'saTrackingGeneratorNotFound': -10}</em><a class="headerlink" href="#qcodes.instrument_drivers.signal_hound.USB_SA124B.SignalHound_USB_SA124B.saStatus" title="Permalink to this definition"></a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="qcodes.instrument_drivers.signal_hound.USB_SA124B.SignalHound_USB_SA124B.saStatus_inverted">
<code class="descname">saStatus_inverted</code><em class="property"> = {0: 'saNoError', 1: 'saNoCorrections', 2: 'saCompressionWarning', 3: 'saParameterClamped', 4: 'saBandwidthClamped', -99: 'saFrequencyRangeErr', -95: 'saInvalidDetectorErr', -94: 'saInvalidScaleErr', -91: 'saBandwidthErr', -666: 'saUnknownErr', -89: 'saExternalReferenceNotFound', -20: 'saOvenColdErr', -12: 'saInternetErr', -1: 'saNullPtrErr', -10: 'saTrackingGeneratorNotFound', -9: 'saDeviceNotIdleErr', -8: 'saDeviceNotFoundErr', -7: 'saInvalidModeErr', -6: 'saDeviceNotConfiguredErr', -5: 'saTooManyDevicesErr', -4: 'saInvalidParameterErr', -3: 'saDeviceNotOpenErr', -2: 'saInvalidDeviceErr', -11: 'saUSBCommErr'}</em><a class="headerlink" href="#qcodes.instrument_drivers.signal_hound.USB_SA124B.SignalHound_USB_SA124B.saStatus_inverted" title="Permalink to this definition"></a></dt>
<code class="descname">saStatus_inverted</code><em class="property"> = {0: 'saNoError', 1: 'saNoCorrections', 2: 'saCompressionWarning', 3: 'saParameterClamped', 4: 'saBandwidthClamped', -1: 'saNullPtrErr', -99: 'saFrequencyRangeErr', -95: 'saInvalidDetectorErr', -94: 'saInvalidScaleErr', -91: 'saBandwidthErr', -666: 'saUnknownErr', -89: 'saExternalReferenceNotFound', -20: 'saOvenColdErr', -12: 'saInternetErr', -11: 'saUSBCommErr', -10: 'saTrackingGeneratorNotFound', -9: 'saDeviceNotIdleErr', -8: 'saDeviceNotFoundErr', -7: 'saInvalidModeErr', -6: 'saNotConfiguredErr', -5: 'saTooManyDevicesErr', -4: 'saInvalidParameterErr', -3: 'saDeviceNotOpenErr', -2: 'saInvalidDeviceErr'}</em><a class="headerlink" href="#qcodes.instrument_drivers.signal_hound.USB_SA124B.SignalHound_USB_SA124B.saStatus_inverted" title="Permalink to this definition"></a></dt>
<dd></dd></dl>

<dl class="method">
Expand Down
4 changes: 2 additions & 2 deletions api/generated/qcodes.instrument_drivers.tektronix.html
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
</table>
<dl class="attribute">
<dt id="qcodes.instrument_drivers.tektronix.AWG5014.Tektronix_AWG5014.AWG_FILE_FORMAT_CHANNEL">
<code class="descname">AWG_FILE_FORMAT_CHANNEL</code><em class="property"> = {'DIGITAL_LOW_N': 'd', 'ANALOG_AMPLITUDE_N': 'd', 'MARKER2_OFFSET_N': 'd', 'MARKER1_LOW_N': 'd', 'MARKER2_LOW_N': 'd', 'DELAY_IN_POINTS_N': 'd', 'DELAY_IN_TIME_N': 'd', 'MARKER2_METHOD_N': 'h', 'DIGITAL_AMPLITUDE_N': 'd', 'MARKER1_SKEW_N': 'd', 'MARKER2_AMPLITUDE_N': 'd', 'ANALOG_OFFSET_N': 'd', 'MARKER2_SKEW_N': 'd', 'MARKER1_HIGH_N': 'd', 'ANALOG_METHOD_N': 'h', 'PHASE_DELAY_INPUT_METHOD_N': 'h', 'DIGITAL_OFFSET_N': 'd', 'DIGITAL_METHOD_N': 'h', 'MARKER1_METHOD_N': 'h', 'MARKER2_HIGH_N': 'd', 'MARKER1_AMPLITUDE_N': 'd', 'DIGITAL_HIGH_N': 'd', 'PHASE_N': 'd', 'ANALOG_FILTER_N': 'h', 'EXTERNAL_ADD_N': 'h', 'OUTPUT_WAVEFORM_NAME_N': 's', 'CHANNEL_STATE_N': 'h', 'DC_OUTPUT_LEVEL_N': 'd', 'ANALOG_LOW_N': 'd', 'ANALOG_HIGH_N': 'd', 'CHANNEL_SKEW_N': 'd', 'ANALOG_DIRECT_OUTPUT_N': 'h', 'MARKER1_OFFSET_N': 'd'}</em><a class="headerlink" href="#qcodes.instrument_drivers.tektronix.AWG5014.Tektronix_AWG5014.AWG_FILE_FORMAT_CHANNEL" title="Permalink to this definition"></a></dt>
<code class="descname">AWG_FILE_FORMAT_CHANNEL</code><em class="property"> = {'ANALOG_LOW_N': 'd', 'DELAY_IN_POINTS_N': 'd', 'PHASE_DELAY_INPUT_METHOD_N': 'h', 'MARKER1_OFFSET_N': 'd', 'DIGITAL_AMPLITUDE_N': 'd', 'MARKER2_METHOD_N': 'h', 'EXTERNAL_ADD_N': 'h', 'MARKER2_AMPLITUDE_N': 'd', 'ANALOG_METHOD_N': 'h', 'MARKER1_METHOD_N': 'h', 'ANALOG_AMPLITUDE_N': 'd', 'ANALOG_FILTER_N': 'h', 'MARKER1_LOW_N': 'd', 'MARKER1_SKEW_N': 'd', 'MARKER1_HIGH_N': 'd', 'OUTPUT_WAVEFORM_NAME_N': 's', 'ANALOG_DIRECT_OUTPUT_N': 'h', 'DIGITAL_METHOD_N': 'h', 'DELAY_IN_TIME_N': 'd', 'MARKER2_LOW_N': 'd', 'ANALOG_HIGH_N': 'd', 'ANALOG_OFFSET_N': 'd', 'PHASE_N': 'd', 'CHANNEL_SKEW_N': 'd', 'CHANNEL_STATE_N': 'h', 'DIGITAL_OFFSET_N': 'd', 'MARKER2_HIGH_N': 'd', 'DIGITAL_HIGH_N': 'd', 'MARKER2_OFFSET_N': 'd', 'MARKER1_AMPLITUDE_N': 'd', 'MARKER2_SKEW_N': 'd', 'DC_OUTPUT_LEVEL_N': 'd', 'DIGITAL_LOW_N': 'd'}</em><a class="headerlink" href="#qcodes.instrument_drivers.tektronix.AWG5014.Tektronix_AWG5014.AWG_FILE_FORMAT_CHANNEL" title="Permalink to this definition"></a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="qcodes.instrument_drivers.tektronix.AWG5014.Tektronix_AWG5014.AWG_FILE_FORMAT_HEAD">
<code class="descname">AWG_FILE_FORMAT_HEAD</code><em class="property"> = {'INTERLEAVE': 'h', 'RUN_MODE': 'h', 'REFERENCE_SOURCE': 'h', 'INTERLEAVE_ADJ_AMPLITUDE': 'd', 'EVENT_INPUT_IMPEDANCE': 'h', 'ZEROING': 'h', 'RUN_STATE': 'h', 'TRIGGER_INPUT_THRESHOLD': 'd', 'JUMP_TIMING': 'h', 'HOLD_REPETITION_RATE': 'h', 'WAIT_VALUE': 'h', 'TRIGGER_INPUT_IMPEDANCE': 'h', 'EVENT_INPUT_POLARITY': 'h', 'TRIGGER_SOURCE': 'h', 'EVENT_INPUT_THRESHOLD': 'd', 'DIVIDER_RATE': 'h', 'TRIGGER_INPUT_POLARITY': 'h', 'INTERLEAVE_ADJ_PHASE': 'd', 'REFERENCE_CLOCK_FREQUENCY_SELECTION': 'h', 'SAMPLING_RATE': 'd', 'REFERENCE_MULTIPLIER_RATE': 'h', 'REPETITION_RATE': 'd', 'TRIGGER_INPUT_SLOPE': 'h', 'EXTERNAL_REFERENCE_TYPE': 'h', 'INTERNAL_TRIGGER_RATE': 'd', 'CLOCK_SOURCE': 'h', 'COUPLING': 'h'}</em><a class="headerlink" href="#qcodes.instrument_drivers.tektronix.AWG5014.Tektronix_AWG5014.AWG_FILE_FORMAT_HEAD" title="Permalink to this definition"></a></dt>
<code class="descname">AWG_FILE_FORMAT_HEAD</code><em class="property"> = {'WAIT_VALUE': 'h', 'EVENT_INPUT_POLARITY': 'h', 'CLOCK_SOURCE': 'h', 'TRIGGER_INPUT_IMPEDANCE': 'h', 'ZEROING': 'h', 'EVENT_INPUT_THRESHOLD': 'd', 'INTERNAL_TRIGGER_RATE': 'd', 'DIVIDER_RATE': 'h', 'REFERENCE_MULTIPLIER_RATE': 'h', 'SAMPLING_RATE': 'd', 'COUPLING': 'h', 'JUMP_TIMING': 'h', 'TRIGGER_INPUT_POLARITY': 'h', 'INTERLEAVE_ADJ_PHASE': 'd', 'RUN_MODE': 'h', 'REFERENCE_CLOCK_FREQUENCY_SELECTION': 'h', 'REFERENCE_SOURCE': 'h', 'TRIGGER_INPUT_THRESHOLD': 'd', 'INTERLEAVE': 'h', 'REPETITION_RATE': 'd', 'EXTERNAL_REFERENCE_TYPE': 'h', 'TRIGGER_INPUT_SLOPE': 'h', 'HOLD_REPETITION_RATE': 'h', 'TRIGGER_SOURCE': 'h', 'RUN_STATE': 'h', 'EVENT_INPUT_IMPEDANCE': 'h', 'INTERLEAVE_ADJ_AMPLITUDE': 'd'}</em><a class="headerlink" href="#qcodes.instrument_drivers.tektronix.AWG5014.Tektronix_AWG5014.AWG_FILE_FORMAT_HEAD" title="Permalink to this definition"></a></dt>
<dd></dd></dl>

<dl class="method">
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion user/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,12 @@ <h2>Default config<a class="headerlink" href="#default-config" title="Permalink
<td>Maximum number of PyQtPlots to automatically keep in memory</td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td>user</td>
<tr class="row-odd"><td>gui.defaultcolormap</td>
<td>string</td>
<td>Default colormap to use for Heatmaps with both Matplotlib and PyQtGraph</td>
<td>&#160;</td>
</tr>
<tr class="row-even"><td>user</td>
<td>object (required)</td>
<td>controls user settings of qcodes</td>
<td>&#160;</td>
Expand Down

0 comments on commit 6a0f1eb

Please sign in to comment.