Beispiel #1
0
 def _get_subplot_attributes(self):
     """See `graph_reference.get_subplot_attributes`."""
     if self._subplot_attributes is None:
         parent_object_names = self._get_parent_object_names()
         subplot_attributes = graph_reference.get_subplot_attributes(
             self._name, parent_object_names)
         self.__dict__['_subplot_attributes'] = subplot_attributes
     return self._subplot_attributes
Beispiel #2
0
 def _get_subplot_attributes(self):
     """See `graph_reference.get_subplot_attributes`."""
     if self._subplot_attributes is None:
         parent_object_names = self._get_parent_object_names()
         subplot_attributes = graph_reference.get_subplot_attributes(
             self._name, parent_object_names
         )
         self.__dict__['_subplot_attributes'] = subplot_attributes
     return self._subplot_attributes
Beispiel #3
0
    def test_get_subplot_attributes(self):

        # importantly, layout should have a bunch of these

        layout_subplot_attributes = gr.get_subplot_attributes('layout')

        # there may be more...
        expected_attributes = ['xaxis', 'yaxis', 'geo', 'scene']

        for expected_attribute in expected_attributes:
            self.assertIn(expected_attribute, layout_subplot_attributes)
    def test_get_subplot_attributes(self):

        # importantly, layout should have a bunch of these

        layout_subplot_attributes = gr.get_subplot_attributes('layout')

        # there may be more...
        expected_attributes = ['xaxis', 'yaxis', 'geo', 'scene']

        for expected_attribute in expected_attributes:
            self.assertIn(expected_attribute, layout_subplot_attributes)