gotcha

Author Topic: Disperse many clones with coorcdinates from table/list  (Read 1169 times)

June 27, 2018, 09:35:45 AM
Read 1169 times

Grobe

  • IC Mentor

  • Offline
  • ******
  • User of useful programs

  • 33
  • Gender
    Male

    Male
  • Personal Text
    Can you resist my finger?
Hi forum.

Today I was going to make an y/x curve in excel, but wasn't very happy with the presentation - so I decided to go using Inkscape for that. There is about 30 x/y coordinates with coordinates relatively to a center point (it all fits into an A3 paper size).

So in order to do this - I draw a X/Y graph with help lines with an origo. Then I draw a tiny red circle, and made 30 clones from that. Then all the clones was moved to center/origo of the X/Y graph, and then each of the clones was manually moved according to the coordinate from the table/list using the move/transform dialog box.
That is time consuming - but 30 isn't that big number, so I got a nice looking graph.

Then the big question - is it possible to automate this process ?


One alternative I had in mind was to use Geogebra, because - after all, Geogebra is more suited for the task and contain a spread sheet.
But when it comes to fit something into a paper that is meant to be printed out later on a certain paper size - Inkscape is perfect for that, and there is other limitations og Geogebra (you can't just create any graphic figure you want and make it behave just the way you want) that make Inkscape be my choice.
It boils down to that I don't want to use Geogebra tool because I need other graphic elements that cannot easilly being created by Geogebra.
At some time I might find time to write something funny at the signature line - for now I just gave the finger som resistance.

June 27, 2018, 02:00:01 PM
Reply #1

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hi.

There is the render grid extension that may help you drawing a polar grid.
As far as I understand you have certain values to plot and not a function -so that the render parametric curves extension is out of the question.

The easiest hack would be using your Cartesian plotted curve as a base for a pattern along path lpe or using simply the band lpe.

June 27, 2018, 02:32:48 PM
Reply #2

Grobe

  • IC Mentor

  • Offline
  • ******
  • User of useful programs

  • 33
  • Gender
    Male

    Male
  • Personal Text
    Can you resist my finger?
Hm - maybe I can use a text editor with regular expression search and replace to paste the coordinates directly into the XML Editor - and then flip that path horisontally.

Then I can (manually) put/snap the small cirkles at the cusp nodes. It may be a faster method - but the placement would still be done manually.

Quote (selected)
The easiest hack would be using your Cartesian plotted curve as a base for a pattern along path lpe or using simply the band lpe.
Thanks for suggestion - but I don't know how that's doable.
At some time I might find time to write something funny at the signature line - for now I just gave the finger som resistance.

June 27, 2018, 02:34:13 PM
Reply #3

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Inkscape includes an extension to auto-create bar charts and pie charts from CSV files. Extensions > Render > NiceCharts.

What you want is available as a user contributed extension, though (probably the first one):

https://inkscape.org/en/~fsmMLK/%E2%98%85cartesianstemplot
https://inkscape.org/en/~fsmMLK/%E2%98%85cartesianplotdata2d

To only render coordinate systems, use https://inkscape.org/en/~fsmMLK/%E2%98%85cartesianaxes2d

July 17, 2018, 03:07:43 PM
Reply #4

Grobe

  • IC Mentor

  • Offline
  • ******
  • User of useful programs

  • 33
  • Gender
    Male

    Male
  • Personal Text
    Can you resist my finger?
Thank you folks - I'm starting to try to test out the cartesianPlotData2D extenion. By now, I'm using my Linux Lite computer - but I will also use those extension on a Windows 10 computer.

Read the readme-file, it made it clear it is dependent on the inkscapeMadeEasy extension. However, in that extenion readme files it states:
Quote (selected)
Many of the methods implemented in inkscapeMadeEasy project use LaTeX to generate text. To this end I decided to employ the excellent extension **textext** from Pauli Virtanen  <https://pav.iki.fi/software/textext/>.

LaTeX support via textext extension requires LaTeX typesetting system in your computer (it's free and awesome! =] ), together with a few python modules (pygtk and Tkinter among others). The later might be a problem for non-Linux systems (precompiled inkscape for Windows as OS X don't come with them).

Therefore my follow up question is - does this means that the extension won't work on W10 ?
At some time I might find time to write something funny at the signature line - for now I just gave the finger som resistance.

July 18, 2018, 01:41:48 AM
Reply #5

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
inkscapeMadeEasy?  I've never heard of that!  And I've just sorted through all 300+ external Inkscape extensions, for the 2nd time.  So they're pretty fresh in my mind.  If I had seen an extension by that name, I certainly would have stopped to install it and check it out.  It must only be  part of that other extension, and never released separately.  But I remain intrigued  ;)

Actually it seems odd that something "made easy" uses a LaTex or texTex, because I was just looking at an extension called WriteTex, and I can't make heads or tails of it.  It seems like there's some kind of code or something, which is used to define certain symbols or formulas.  I guess it's useful for people who use that kind of a advanced math.  But any "Tex" made easy would seem like a good idea!

However, based on that readme, it does sound like it might not work on Windows.  I guess you'd just have to try it, to find out for sure.  I suppose it's possible those python modules might have been made to support Windows, in whatever amount of time since the extension was released.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 18, 2018, 11:54:37 AM
Reply #6

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Gggaaaghhhh!!

Just found InkscapeMadeEasy!  It's not at ALL what it sounds like!
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 19, 2018, 05:17:41 AM
Reply #7

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
@Grobe

One of the mentioned GUI libraries actually *is* packaged with the Windows version currently... Tkinter?... Just try it out, it's not overly complex to drop the extension files into the right directories.

Also, it's not sure that you actually need Latex support for what you want to do - that depends on how the extension is implemented.

July 22, 2018, 04:15:32 PM
Reply #8

Grobe

  • IC Mentor

  • Offline
  • ******
  • User of useful programs

  • 33
  • Gender
    Male

    Male
  • Personal Text
    Can you resist my finger?
Thanks. Hopefully I'll get time to test it this week, or next . . .
At some time I might find time to write something funny at the signature line - for now I just gave the finger som resistance.