Do I have a way to match the map to the frame of x-y axis?

DataGraph Forums Technical Support Support Desk Do I have a way to match the map to the frame of x-y axis?

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4253
    petercreate
    Participant

      I watched the online example and tried to specify the size, but still cannot hit the target. My global map seems to be 7200 by 3600 pixels. When I defined the canvas with these dimensions, I got a much larger space area with very tiny global map inside. Do you know the reason?

      What I show here is a 25% image.

      global_shade

      #4254
      dgteam
      Moderator

        Here is how we set up the Hurricane example …

        Example

         

        Set the range of the graph to be equal to the size of the graph.  You can check the pixel size of the graph in the Graphic command.

        Map1

         

        Set the x and y range to correspond to the map units (latitude and longitude).  For example, set the Include as shown and the Padding to be ‘None’.

        Map4

        If it is still too small maybe the zoom has been set to too low a value.

        Map3

        Hope that helps!

        Nice looking map by the way!!

        #4255
        petercreate
        Participant

          Thanks. I tried your way, the graph shows exceeding the expected range, seeing here

          Screen Shot 2020-05-25 at 11.27.11

          While after I adjusted the size of the graph manually and carefully, I got this with a good match of the graph and the frame.

          Screen Shot 2020-05-25 at 11.33.08

          Do you know the reason? Or anywhere I missed?

          #4258
          dgteam
          Moderator

            The line you are setting is the location of the x-y coordinate system, which is independent of the size of the canvas.

            Set all the margins to zero and then they will match.

            Map5

            I find it helpful to continue to draw the x and y axes to see that they are scaled correctly (assuming you are overlaying some data).

            Map7

            The axis labels are not exported with the figure as they are outside of the range.

            FYI — One shortcut is to create a graph for composition.  That creates a canvas with the margins already set to zero.

            Map6

             

             

            #4261
            petercreate
            Participant

              Many thanks. Do you have a way to export the figure with axis’ labels?

              #4262
              dgteam
              Moderator

                Here are two options.

                Add the margins back in and increase the size of the graph accordingly.

                MapSize01

                OR …

                Create a second graph using the File/New Graph/For Composition, mentioned above.

                Select the first graph in the Graphic command.

                Then you can set the size here to what you want for export in more meaningful units and scale the image as needed. Also allows you to add other text labels.MapSize02

                Either way can work.  It would be matter of preference and what you want to do with the desired output.

                #4263
                petercreate
                Participant

                  It works. Thanks.

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.

                DataGraph Forums Technical Support Support Desk Do I have a way to match the map to the frame of x-y axis?