title: In manim, how do you set the text of the axis labels different to the axis units?
body: <p>I want to have years on the x axis, starting at 1970 through to 2019. But when I set min x at 1970 in config, the x axis doesn't appear (I assume because it starts at 0 by default and if I set 1970 as first  year, that is way off to the right).</p>
  <p>I have had to settle for now with just showing the unit text on the x axis.</p>
  <p>How do I fix this? My guess is that I need to tell manim the label text is different than the units of the axis, but I am not sure how - or even if that is the right approach.</p>
  <p>Here's the code:</p>
  <pre><code>class TimeGraph(GraphFromData):
  
      CONFIG = {
              &quot;x_min&quot;: 0,
              &quot;x_max&quot;: 49,
              &quot;x_tick_frequency&quot;: 5,
              &quot;unit_size&quot;: 2,
              &quot;y_min&quot;: 0,
              &quot;y_max&quot;: 600,
              &quot;y_tick_frequency&quot;: 100,
              &quot;unit_size&quot;: 0.5,
              &quot;x_axis_width&quot;: 12,
              &quot;y_axis_height&quot;: 6,
              &quot;axes_color&quot;: &quot;#3A749C&quot;,
              &quot;x_label_color&quot;: &quot;#3A749C&quot;,
              &quot;y_label_color&quot;: &quot;#3A749C&quot;,
              &quot;label_nums_color&quot;: &quot;#3A749C&quot;,
              &quot;y_label_direction&quot;: LEFT,
              &quot;x_label_direction&quot;: DOWN,
              &quot;camera_config&quot;: {
                      &quot;background_color&quot;: WHITE,
              },
              &quot;x_label_font_size&quot;: 0.5,
              &quot;y_label_font_size&quot;: 0.5,
      }
  
      def construct(self):
  
              vector = np.array([-5, -3, 0])
              self.graph_origin = vector
              self.setup_axes()
  
              # Get coords
              coords = get_coords_from_excel(
                      &quot;projects/carbon_debt/data_excel&quot;, sheet_name=&quot;unga_env&quot;
              )
  
              dots = self.get_dots_from_coords(coords)
              dots.set_color(&quot;#E89F99&quot;)
              dots.set_stroke(color=&quot;#3A749C&quot;, width=1)
  
              self.add(dots)
  
      def setup_axes(self):
              GraphScene.setup_axes(self)
              init_label_x = 0
              end_label_x = 45
              step_x = 5
              init_label_y = 100
              end_label_y = 600
              step_y = 100
  
              self.x_axis.add_numbers(
                      *range(init_label_x, end_label_x + step_x, step_x),
              )
              self.y_axis.add_numbers(*range(init_label_y, end_label_y + step_y, step_y))
  
              self.add(self.x_axis)
              self.add(self.y_axis)
  </code></pre>