Opening text files and plotting data

(8 posts)

Tags:

  • noneck
    Member

    Hi!

    I´m a beginner and I would like to ask you how I can open a text file and plot the data (X,ErrX,Y,ErrY) on a graph. I tried to look for some help about plotting graphs on the Canvas 11 user guide but I didn't find anything so basic....

    Are there other user guides that I can read to find information about this kind of problems?

    Thank you very  much for your help.

    Posted On September 3, 2009 - 09:52 AM (6 months ago) (Permalink to this post)
  • kohanmike
    Member

    As far as I know, Canvas does not have a function to plot graphs. You will probably have to do it manually, or find specific graph plotting software.

    Posted On September 3, 2009 - 09:28 PM (6 months ago) (Permalink to this post)
  • jhren
    Member

    Look into using the Object Path Editor, in the Object menu...

    Display the palette and click on the down-pointing-arrow button at the top right side.  Choose "Load Polygon".  You may have to restructure your text to match how Canvas reads the text.

    Posted On September 7, 2009 - 12:56 PM (6 months ago) (Permalink to this post)
  • kohanmike
    Member

    I did not know that Canvas had that ability. I tried to do a test in Canvas X b926 Mac, I used coordinates that I found in the Canvas manual in the Object Path Editor example, typed three lines of coordinates with tabs between each, copied and tried the paste choices, and also saved a txt tab delimited document and tried to load it, all I got was an "Invalid format' message every time. I don't know what other way to do the format. The manual simply says tab delimited coordinates.

    Posted On September 8, 2009 - 07:19 AM (6 months ago) (Permalink to this post)
  • rsands
    Member

    Mike I just tried this and got same.

    But then renamed extension from txt to csv, opened in Excel and saved as tab delim text file.
    It looked like this
    445059.407    5417107.878
    444608.01    5417344.048
    442442.591    5419563.625
    Then it imported OK.

    This highlighted a problem I have finding entities like this.
    I'd created a GIS file and when the polygon came in it was 5400000 units off the screen.
    How does one find where these things are and qucikly bring them onto the page?

    If I was doing this in real GIS world that wouldn't be an issue as it would all be georeferenced and so importing into a created job would sit OK.

    Posted On September 8, 2009 - 08:58 AM (6 months ago) (Permalink to this post)
  • jhren
    Member

    kohanmike said:

    I did not know that Canvas had that ability. I tried to do a test in Canvas X b926 Mac, I used coordinates that I found in the Canvas manual in the Object Path Editor example, typed three lines of coordinates with tabs between each, copied and tried the paste choices, and also saved a txt tab delimited document and tried to load it, all I got was an "Invalid format' message every time. I don't know what other way to do the format. The manual simply says tab delimited coordinates.

     Sounds like you formatted ok.

    Suggest you export (aka Save) a path to file then open it in your text editor to see how it is formatted.  Opening in a word processor which can display hidden characters, such as Word, may help.  Note a bezier path is formatted the same textually but has an extra line per Handle.  If formatted as bezier, I think you you will get the invalid format message if you attempt to use the Load Polygon option... and perhaps vice-versa.

    Posted On September 12, 2009 - 04:35 PM (6 months ago) (Permalink to this post)
  • jhren
    Member

    rsands said:

    ...

    This highlighted a problem I have finding entities like this.
    I'd created a GIS file and when the polygon came in it was 5400000 units off the screen.
    How does one find where these things are and qucikly bring them onto the page?

     Try using the Document Layout palette.  When you create an entity, it should be at the top of the list for the Layer on which it was created.  Highlight that object in the list.  This should select the object, even if it is off screen.  Cut the object, then Paste.  This should place the object in the center of your screen, where you can simply relocate it as desired.  Another option when highlighted in the Document Layout palette is to note its coordinates on the... can't remember offhand what it's called, so I'll call it the... properties bar.   From there, change the object's coordinates to the required position, on-screen or not.

    Posted On September 12, 2009 - 04:46 PM (6 months ago) (Permalink to this post)
  • jhren
    Member

    PS: To check for outlying entities (off-screen or off-canvas) make sure you have Select Across Layers enabled (or not, if you only want to check the active layer), then Edit>Select All, then Layout>View>Fit to Window.

    Note the Select All command does not select any hidden objects.  You can use this "feature" in conjunction with the Document Layout palette's Show/Hide feature to check only several but not all layers or a certain group of objects.

    Posted On September 12, 2009 - 05:01 PM (6 months ago) (Permalink to this post)

Subscribe to this topic via RSS

Reply

You must log in to post.