Permalink
Browse files

Fixed error that prevented markers from being drawn in the grid

  • Loading branch information...
1 parent ffd3ec2 commit 4a9e0e3e009783441f7265140d77df0535f74041 @manns committed Oct 1, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 pyspread/src/gui/_chart_dialog.py
@@ -247,7 +247,7 @@ def OnStyle(self, event):
"""Marker style event handler"""
marker_style_code = self.style_editor.get_code(event.GetString())
- self.chart_data["marker_style"] = marker_style_code
+ self.chart_data["marker_style"] = repr(marker_style_code)
post_command_event(self, self.DrawChartMsg)
def OnEdgeColor(self, event):
@@ -298,6 +298,7 @@ def __init__(self, parent, code, **kwds):
self.series_keys = ["x_data", "y1_data", "y2_data", "line_color",
"marker_face_color", "marker_edge_color"]
+ self.string_keys = ["marker_style"]
if code[:7] == "charts.":
# If chart data is present build the chart
@@ -463,6 +464,9 @@ def eval_chart_data(self, chart_data):
for key in self.series_keys:
evaluated_chart_data[key] = self.get_series_tuple(chart_data[key])
+ for key in self.string_keys:
+ evaluated_chart_data[key] = chart_data[key][1:-1]
+
return evaluated_chart_data
def get_figure_code(self):

0 comments on commit 4a9e0e3

Please sign in to comment.