|
Suppose I have the following
y <- rnorm(10) b <- as.factor(sample(1:4,10,replace=T)) qplot(1:10, y, shape=b)
How do I change the shapes that are used using ggplot2 ?
Started by chris_dubois on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Be:
qplot(1:10, y, shape=b) + scale_shape_manual(value=c(0,5,6,15))
The shapes are the same> y <- rnorm(10) > b <- as.factor(sample(1:4,10,replace=T)) > qplot(1:10, y, shape=b.
|
|
Hi,
I put several shapes (like Ellipse and Rectangle) on a Canvas. Now, I want user to be able to drag & drop these shapes. Is there some predefined functionality that I can use, or I should implement the drag & drop myself using the mouse events ?
Thanks...
Answer Snippets (Read the full thread at stackoverflow):
HTH
Handling the mouse events and implementing....
If not I have some sample code that I can post later this evening .
Here is an article I believe will help - link text .
I believe you will need to do this yourself, using the mouse events and the visual tree .
|
|
I'm looking to connect or glue together two shapes or objects with a Line. These shapes will be generated dynamically, meaning I'll be calling a Web service on the backend to determine how many objects/shapes need to be created. Once this is determined...
Started by dotnetdvlpr on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
My shape is a usercontrolUse a Path or a Line below the shapes in stacking order or z index Use instance.TransformToVisual() to get the transform....
At the bounds of the shapes instead of going inside/behind the shape to its centre.
|
Ask your Facebook Friends
|
I'm working on an application, I need to be able to combine two overlapping arbitrary shapes as drawn by the user. This would be a Union operation on the two shapes. The resultant shape would be the silhouette of the two overlapping shapes.
The shapes...
Started by Greg B on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Switch....
Wind clockwise along the current shape to the next point and check to see if one or more new shape.
Call that Shape A and make it the current shape.
For you?
How about:
Pick the left-most point of the two shapes.
|
|
Anyone have any ideas on where to get a really nice collection of visio shapes, e.g for the following purposes:
network diagrams shapes to show solution deployments any other fancy looking diagrams for software development?
Started by dronco on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Of visio shapes for gui mockups here ..
|
|
I have a series of shapes (Approx. 50), that each have 5 points, and a color (with alpha transparency). I want to render these shapes onto a pixel grid.
I program as an amateur, so I have no idea how I should go about doing this.
Can someone give me a...
Started by David Farley on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
shapes; private static final int NUM_SHAPES = 50; private static final int NUM_POINTS_PER_SHAPE = 5; for (ColoredShape shape : shapes) { g2.setColor(shape.getColor()); g2.fill(shape.getOutline(); } private void initShapes....
|
|
I want to create a number of straight lines connecting small circle shapes. then I want to change the color and width of the lines from within my program. I was thinking of using Canvas to do this but there does not seem to be a way to access individual...
Started by kokokok on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Once they....
You don't paint shapes onto a Canvas if you're using Graphics and Graphics2D functions like drawRect, drawPolygon, drawOval, etc.
Is to have a List of your shapes (either one list for all or one for circles and one for lines.
|
|
What's the best way to draw shapes interactively at run time using Delphi? I need to be able to select, drag and resize the shapes. This will be used to mark up existing images and documents.
This looks like a good starting point , but I'm wondering if...
Started by Bruce McGee on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
- Select shapes visually : Shows different ways to select shapes visually think of it as a light "cad" ....
Sample (in this case with TImage).
You can review the code and extract what you need .
Shapes (Creating, selecting, resizing).
|
|
Does anyone know where I can find Visio shapes for Lucent equipment? Specifically, AC120 and CBX500's. I also trying to avoid having to pay a subscription fee.
Started by Craig on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
First hit from the google: http://www.netzoomstencils.com/home/index.php
Google says ....
|
|
If I draw any shape onto a surface (with SRCALPHA flag on) in a partially transparent colour it completely replaces what was underneath it, instead of overlapping like you would expect in image editors.
How can I make the shapes overlap properly?
Started by Jeffrey Aylesworth on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
-- If you're going to display the same....
If you've))
p.s.
You could use blit with appropriate BLEND_* values (keeping the shapes as separate surfaces channel, draw your shape onto that surface, then blit with blending onto the final surface.
|