Skip to main content
warpigs666
Inspiring
July 26, 2019
Question

How to export ASCII plot point data like Matlab .fig files

  • July 26, 2019
  • 3 replies
  • 1261 views

Hi. I'm wondering if it's possible to export a file type from illustrator that will show the vector plots in ASCII like Matlab's .fig file formant does? I saw this done with Xfig which is a rudimentary vector drawing app and I am wondering if it's possible in AI?

    This topic has been closed for replies.

    3 replies

    warpigs666
    Inspiring
    July 27, 2019

    Thanks to both of you. What I'm looking for is something that will give me numbers formatted as below, Xfig does this for vector drawings:

       [4752, 5407, 4757, 5131, 4832, 4847, 4859, 4808, 4974, 4617, 5139, 4444,

          5214, 4390, 5409, 4266, 5684, 4200, 5884, 4222, 6141, 4297, 6292, 4386,

          6417, 4510, 6528, 4652, 6634, 4816, 6710, 5052, 6736, 5300, 6705, 5584,

          6656, 5735, 6550, 5948, 6479, 6050, 6369, 6151, 6301, 6210, 6341, 6285,

          6301, 6436, 6150, 6507, 6031, 6463, 5955, 6379, 5964, 6285, 5920, 6276,

          5920, 6374, 5866, 6445, 5769, 6503, 5627, 6467, 5556, 6387, 5547, 6281,

          5529, 6276, 5511, 6387, 5445, 6472, 5338, 6507, 5232, 6467, 5165, 6365,

          5161, 6237, 5181, 6203, 5171, 6195, 5118, 6139, 5121, 6143, 4961, 5979,

          4868, 5806, 4823, 5722

        ],

       

        [5070, 6205, 4721, 6525, 4717, 6738, 4633, 6924, 4455, 7080, 4269, 7133,

          4100, 7133, 4038, 7115, 4384, 6809, 4025, 6410, 3674, 6711, 3661, 6560,

          3723, 6352, 3834, 6201, 3985, 6121, 4193, 6077, 4357, 6094, 4766, 5762

        ],

    Eric Dumas
    Community Expert
    Community Expert
    July 31, 2019

    After checking with MathLabs, it does not seem possible to insert vector format drawings.

    Answer for tech guys:

    Is he actually aiming for vector graphic export and then display that in ML? if so the answer is no of course he can export as image (png, bmp etc) and then use imread and imshow to display that in ML

    warpigs666
    Inspiring
    July 31, 2019

    Awesome thanks so much. What I'm looking for, I believe, are just the coordinates of the vectors. The example I was shown is listed above. The idea is that I would then cut and paste those coordinates into a bit of javascript code which converts them and draws the image in an entirely different manner. Does that make sense?

    Monika Gause
    Community Expert
    Community Expert
    July 27, 2019

    Not quite sure what you want, but I would give Inkscape a try.

    It has a lot of functions that can output the anchors, handles and whatnot.

    Eric Dumas
    Community Expert
    Community Expert
    July 27, 2019

    Hi,

    Please include the version of illustrator and operating system you are using.

    Screenshots would help us understand better your issue.

    Without adding a plug-in to illustrator you will need to find a format to import in some conversion tool, but you might loose something during the conversion. A friend of mine is working in MathWorks, I will pass on the question.