barplots to trapezium

Post questions on how to use or achieve an effect in Inkscape.
furor
Posts: 3
Joined: Fri Oct 25, 2019 7:45 am

barplots to trapezium

Postby furor » Fri Oct 25, 2019 8:21 am

Hello all,

I've used Inkscape for fairly basic processing of scientific figures. Now I have about 20 .svgs of 7 stacked barplots each. I want them to be arranged in a circular (donut kind of) way, so I would need to convert them to trapeziums.
I can make a trapezium from a drawn rectangle, so I thought of merging the barplots with a rectangle and then transform it similarly.

Whatever I try, eventually, only the corner of one of the parts of the stack is moved, instead of it being the corner of the composed object/figure.
How can I combine all the separate parts into 1 object and then make a trapezium of it? (so I don't want to cut it, but compress 1 side of the 'rectangle')

SVG Image

Thanks for any help!

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: barplots to trapezium

Postby druban » Fri Oct 25, 2019 10:28 am

pretty simple to do, in fact there are too many ways to do it without knowing if you want them to be curved at all, if they are all identical or is each one different, which side do you want to be shortest,
We have the pattern on path, the bend, the perspective, and envelope extensions, scatter, etc
Your mind is what you think it is.

furor
Posts: 3
Joined: Fri Oct 25, 2019 7:45 am

Re: barplots to trapezium

Postby furor » Fri Oct 25, 2019 3:31 pm

Hi,

just very basic. I want the left side of the left barplot to be shorter, increasing to the right with the right side of the utter right barplot to be unaltered. No curves.
Now I'm only able to change the individual colored blocks within a barplot instead of the total figure. :oops:

thanks!

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: barplots to trapezium

Postby druban » Fri Oct 25, 2019 6:17 pm

either of these methods
the extension requires the yellow path to be drawn - doesn't have to be right on your group, so it's very convenient to draw in the place you want and the deformed object will move to that location.
the path effect let's you interactively resize but if you want a precise fit you will have to draw guides to snap to
Attachments
12.png
12.png (70.46 KiB) Viewed 2058 times
Your mind is what you think it is.

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: barplots to trapezium

Postby druban » Mon Oct 28, 2019 4:21 pm

Had a few minutes.. Pattern on path extension
Attachments
drawing.png
drawing.png (70.09 KiB) Viewed 1994 times
Your mind is what you think it is.

furor
Posts: 3
Joined: Fri Oct 25, 2019 7:45 am

Re: barplots to trapezium

Postby furor » Tue Oct 29, 2019 11:48 pm

Thanks for the hints, I'm trying both, so far not much success with the envelope extension, though.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: barplots to trapezium

Postby tylerdurden » Wed Oct 30, 2019 9:57 am

Live Path Effect... easy-peasy.
Image
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: barplots to trapezium

Postby Moini » Thu Oct 31, 2019 7:52 am

There's a mirroring option - I'd use this for making things symmetrical.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: barplots to trapezium

Postby druban » Thu Oct 31, 2019 11:48 am

The extension requires that you draw the envelope with the first node where you want top left of your target to appear. If you close the path it's difficult to see where the first node is, so for that reason I leave the path open as in the examples. notice how the arrow points to the first node (labeled '1') of the envelope path every time because in the original it pointed to the top left. Note also that the envelope path must be the second item selected, and the object must be grouped.
Attachments
biy.png
biy.png (26.29 KiB) Viewed 1903 times
Your mind is what you think it is.


Return to “Help with using Inkscape”