Moving Text Along with Shape in RaphaelJS Free Transform tool - svg

Am trying to create a sample shape(for eg, square) and use RaphaelJS Free Transform plugin to drag ,rotate or resize the shape.Now,I also want a text to be displayed in the center of the shape. Can anyone help me with transforming the text when the shape is transformed.

Related

Text direction adjustment in python-pptx

I'm unable to control the text direction when text is embedded in a shape or a text box.
For example, the shape below is rotated 90 degrees, and the text is rotating with it as well, but I need it to appear normal, which is horizontal
click here to see an image showing this problem
Any way to do this in pptx or otherwise?

How to center text within label in a map chart in spotfire?

How to center the text within a label in a map chart in Spotfire? I tried the labels option but it doesn't have an option to align the text.
sadly, there is no feature to align text inside of a label, and the label formatting features are a bit limited. this goes for all of the other chart types that support labels, too.
one really silly idea I just thought of and haven't tried would be to change the label to use a monospace font like Courier New, and then calculate how many spaces you'd need to place on the left to make the text appear centered, but herein lies only madness and I wouldn't seriously recommend this approach to anyone.

How to remove rectangle shapes from image, keeping text, in Python3?

I am trying to extract the text from flowcharts and decision trees. If I use the image with original boxes/shapes, the text region detection is poor. Is there any way to remove these shapes (keeping the text)?
You could use connectedComponentsWithStats(), you will have single component for the chart lines, then just remove that component from the image.

Select polygons of an object by color in Blender

I have a scan of a body and I want to select it's t-shirt only but all the polygons belong to the same object. Is there a way to select polygons by color and then delete those unselected, so I can have an obj containing only the t-shirt?
edit: I want something similar than you do with gimp or photoshop with 2d images, selecting pixels by colors.
A 3D scan would most likely use a photo that is uv mapped onto a mesh object. In this setup there is no easy way to select part of the mesh based on the material colour. In fact each polygon in the mesh maps to an area of an image that can contain any number of colours.
There are several selection tools available, I expect using box select B and/or circle select C (sometimes called paint select) and then using X to delete the vertices/faces you don't want would be the approach to use.
It is possible to use multiple materials on a model with each face being assigned a different material, if this is the case you have an option to select or deselect the faces using a material in the material properties.

excel exporting to pdf; graph placement offset

I have some trouble with a document when exporting it to pdf with the builtin pdf export function of excel (2010).
I've generated a graph on my worksheet, with some colored cells arround it. Visually it looks good (even if I zoom on it with the ctrl key + mouse wheel). But when exporting, the graph overlap the surrounding cells.
For example, on the image bellow, I take a screenshot of my graph in excel (at top) and in pdf (at bottom). The red part is my graph (I've colored the background of the graph object). The graph have a black border. And just on the top of the graph, I've colored the background of a cell in blue. Normally, the graph must not overlap the blue cell, because I've manually place it bellow (cut the graph, select the cell bellow the blue one, and past the graph to this emplacement).
But we can see that:
the black border overlap the blue cell (in excel and in pdf version; but it's not really my problem; I've understand that the border in excel object is at outside the object; and then overlapp surround objects/cells).
the graph (in red + the border) has not the same place in excel and in pdf, there is a big offset (it's not a resize problem, this offset is present and the left side too). The place of the graph is more on the left and more on the top in pdf version than it can be!
(I'm using this to automatically generate reports; and the result is not visually good)
Is there any way to overcome this problem?
Hmm, I can't replicate your problem, but I've had similar issues exporting Crystal Reports to PDF. Here's 2 suggestions, neither of which is perfect and I couldn't try them first (again, sorry I couldn't replicate the problem):
Add a white row with a very small height between the graph and the cell. It might even be visually more appealing than the 2 objects one on top of the other.
Make your graph's background transparent and hide the border. Maybe add some extra white space at the top of your graph. That way, they'll still overlap, but it won't be as obvious.

Resources