Skip to content

Commit

Permalink
colorscale capitalization tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcjohnson committed Feb 21, 2016
1 parent 57615a1 commit 8a2b89a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions qcodes/plots/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
colorscales_raw = {
'Greys': [[0, 'rgb(0,0,0)'], [1, 'rgb(255,255,255)']],

'YIGnBu': [
'YlGnBu': [
[0, 'rgb(8, 29, 88)'], [0.125, 'rgb(37, 52, 148)'],
[0.25, 'rgb(34, 94, 168)'], [0.375, 'rgb(29, 145, 192)'],
[0.5, 'rgb(65, 182, 196)'], [0.625, 'rgb(127, 205, 187)'],
Expand All @@ -30,14 +30,14 @@
[0.75, 'rgb(199, 233, 192)'], [0.875, 'rgb(229, 245, 224)'],
[1, 'rgb(247, 252, 245)']],

'YIOrRd': [
'YlOrRd': [
[0, 'rgb(128, 0, 38)'], [0.125, 'rgb(189, 0, 38)'],
[0.25, 'rgb(227, 26, 28)'], [0.375, 'rgb(252, 78, 42)'],
[0.5, 'rgb(253, 141, 60)'], [0.625, 'rgb(254, 178, 76)'],
[0.75, 'rgb(254, 217, 118)'], [0.875, 'rgb(255, 237, 160)'],
[1, 'rgb(255, 255, 204)']],

'Bluered': [[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']],
'bluered': [[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']],

# modified RdBu based on
# www.sandia.gov/~kmorel/documents/ColorMaps/ColorMapsExpanded.pdf
Expand Down Expand Up @@ -75,7 +75,7 @@
[0.5, 'rgb(242,211,56)'], [0.75, 'rgb(242,143,56)'],
[1, 'rgb(217,30,30)']],

'Jet': [
'jet': [
[0, 'rgb(0,0,131)'], [0.125, 'rgb(0,60,170)'],
[0.375, 'rgb(5,255,255)'], [0.625, 'rgb(255,255,0)'],
[0.875, 'rgb(250,0,0)'], [1, 'rgb(128,0,0)']],
Expand Down
2 changes: 1 addition & 1 deletion qcodes/plots/pyqtgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _draw_plot(self, subplot_object, y, x=None, color=None, width=None,
def _line_data(self, x, y):
return [self._clean_array(arg) for arg in [x, y] if arg is not None]

def _draw_image(self, subplot_object, z, x=None, y=None, cmap='Hot',
def _draw_image(self, subplot_object, z, x=None, y=None, cmap='hot',
**kwargs):
img = self.rpg.ImageItem()
subplot_object.addItem(img)
Expand Down

0 comments on commit 8a2b89a

Please sign in to comment.