code: def test_xaxis_tick_orientation(self):
      data = chartify.examples.example_data()
  
      quantity_by_fruit_and_country = (
          data.groupby(["fruit", "country", "date"])["quantity"]
          .sum()
          .reset_index()
          .head(10)
      )
      ch = chartify.Chart(blank_labels=True, x_axis_type="categorical")
      ch.plot.bar(
          data_frame=quantity_by_fruit_and_country,
          categorical_columns=["fruit", "country", "date"],
          numeric_column="quantity",
          color_column="fruit",
      )
  
      ch.axes.set_xaxis_tick_orientation(
          ["vertical", "horizontal", "diagonal"]
      )
      assert np.allclose(
          ch.figure.xaxis[0].major_label_orientation, 1.5707963267948966
      )
      assert ch.figure.xaxis[0].subgroup_label_orientation == "parallel"
      assert np.allclose(
          ch.figure.xaxis[0].group_label_orientation, 0.7853981633974483
      )
  
      ch.axes.set_xaxis_tick_orientation("horizontal")
      assert ch.figure.xaxis[0].major_label_orientation == "horizontal"
      assert ch.figure.xaxis[0].subgroup_label_orientation == "parallel"
      assert ch.figure.xaxis[0].group_label_orientation == "parallel"
  
      ch.axes.set_xaxis_tick_orientation("vertical")
      assert np.allclose(
          ch.figure.xaxis[0].major_label_orientation, 1.5707963267948966
      )
      assert np.allclose(
          ch.figure.xaxis[0].subgroup_label_orientation,
          1.5707963267948966,
      )
      assert np.allclose(
          ch.figure.xaxis[0].group_label_orientation, 1.5707963267948966
      )
  
      ch = chartify.Chart(blank_labels=True, y_axis_type="categorical")
      ch.plot.bar(
          data_frame=quantity_by_fruit_and_country,
          categorical_columns=["fruit", "country", "date"],
          numeric_column="quantity",
          color_column="fruit",
      )
  
      ch.axes.set_yaxis_tick_orientation(
          ["vertical", "vertical", "diagonal"]
      )
      assert np.allclose(
          ch.figure.yaxis[0].major_label_orientation, 1.5707963267948966
      )
      assert ch.figure.yaxis[0].subgroup_label_orientation == "parallel"
      assert np.allclose(
          ch.figure.yaxis[0].group_label_orientation, 0.7853981633974483
      )
  
      ch.axes.set_yaxis_tick_orientation("horizontal")
      assert ch.figure.yaxis[0].major_label_orientation == "horizontal"
      assert ch.figure.yaxis[0].subgroup_label_orientation == "normal"
      assert ch.figure.yaxis[0].group_label_orientation == "normal"
  
      quantity_by_date = (
          data.groupby("date")["quantity"].sum().reset_index()
      )
      ch = chartify.Chart(x_axis_type="datetime")
      ch.plot.line(quantity_by_date, "date", "quantity")
      assert ch.figure.xaxis[0].major_label_orientation == "horizontal"
  
      ch.axes.set_xaxis_tick_orientation("vertical")
      assert np.allclose(
          ch.figure.xaxis[0].major_label_orientation, 1.5707963267948966
      )
  
file_path: chartify/tests/test_axes.py
imports: import chartify
  import numpy
  import pandas
label_desc: Use image node_id 4 for calling the TestBaseAxes obj's underlying member method code with example usage: obj.test_xaxis_tick_orientation() without return types