Example #1
0
 def legend(self):
     """
     A |Legend| object providing access to the properties of the legend
     for this chart.
     """
     legend_elm = self._chartSpace.chart.legend
     if legend_elm is None:
         return None
     return Legend(legend_elm)
Example #2
0
 def horz_offset_get_fixture(self, request):
     legend_cxml, expected_value = request.param
     legend = Legend(element(legend_cxml))
     return legend, expected_value
Example #3
0
 def horz_offset_set_fixture(self, request):
     legend_cxml, new_value, expected_legend_cxml = request.param
     legend = Legend(element(legend_cxml))
     expected_xml = xml(expected_legend_cxml)
     return legend, new_value, expected_xml
Example #4
0
 def font_fixture(self, request):
     legend_cxml, expected_cxml = request.param
     legend = Legend(element(legend_cxml))
     expected_xml = xml(expected_cxml)
     return legend, expected_xml
Example #5
0
 def position_set_fixture(self, request):
     legend_cxml, new_enum_member, expected_legend_cxml = request.param
     legend = Legend(element(legend_cxml))
     new_value = getattr(XL_LEGEND_POSITION, new_enum_member)
     expected_xml = xml(expected_legend_cxml)
     return legend, new_value, expected_xml
Example #6
0
 def position_get_fixture(self, request):
     legend_cxml, expected_enum_member = request.param
     legend = Legend(element(legend_cxml))
     expected_value = getattr(XL_LEGEND_POSITION, expected_enum_member)
     return legend, expected_value
Example #7
0
 def include_in_layout_set_fixture(self, request):
     legend_cxml, new_value, expected_legend_cxml = request.param
     legend = Legend(element(legend_cxml))
     expected_xml = xml(expected_legend_cxml)
     return legend, new_value, expected_xml
Example #8
0
 def include_in_layout_get_fixture(self, request):
     legend_cxml, expected_value = request.param
     legend = Legend(element(legend_cxml))
     return legend, expected_value