Questions tagged [shapes]
Questions related to drawing or defining shapes.
4,396
questions
-1
votes
0
answers
9
views
python plot cylinders in 3d providing start and end positions and diffrent diameters
When using OpenScad I can define a cylinder with a start and end diameter and rotate/translate it in 3d. OpenScad however has a lot of limitations with its scripting and I am rather used to python.
My ...
0
votes
2
answers
38
views
R Geom Line, color and shape for the same figures
I used "scale_shape_manual" and "scale_color_manual" to color and shape 5 different variables, they are not on the same column. I want the legend to be just one merged, not ...
0
votes
1
answer
33
views
Mac OS SwiftUI create a Shape with some text
I am writing an app that shows an image and then draw over image a coordinate grid in which i want to put some text label of the critical points of the grid. So i wrote a Shape that draws the grid and ...
3
votes
1
answer
31
views
Interactive legend not showing when hovering in the center of polygons in an R Plotly map. Only appears over the outline (shape)
I am creating an interactive map (shape) using Plotly in R. The map displays #frequencies in different departments. However, when hovering over the center of the polygons, the tooltip with the ...
0
votes
0
answers
26
views
MS Word Interop: Group image and label
I am trying to group the image and text in one shape using Microsoft.Office.Interop.Word in C# .NET Framework 4.7 application.
At the moment of grouping I have strange error "Grouping is ...
0
votes
0
answers
8
views
transpose, concatenate, stack multiple, identical group of rows
groups of rows have to be transposed and then concatenated/stacked.....example suppose I have a 6 by 5 matrix where 6 = rows, appear like 1,2,1,2,1,2 (identical groups of rows) and 5 columns, and I ...
1
vote
1
answer
44
views
Add grid lines to canvas by creating custom shape with MVVM WPF
I want to switch my code-behind project to MVVM design., but I'm having a little trouble with this.
I have canvas panel and i want create grid lines as backround.
In Code behind i am adding the grids ...
-3
votes
0
answers
34
views
color and shape recognition project name error python
I am writing code with color and shape recognition in Jupyter notebook, but I am getting this error. How can I deal with it? I am new to Python.
enter image description here
I tried many things but I ...
0
votes
1
answer
43
views
JavaFX program that moves circle with on screen buttons
I use an HBox to store the buttons and when the event happens, i.e., the button is pressed, the circle's X or Y value is translated.
I am able to move the circle using the buttons, but they move only ...
0
votes
0
answers
12
views
How to draw a shape in the future on Tradingview advanced chart
I want to draw in the future exactly where the transaction would be completed. But the chart only draws a figure to the end of my candles. Is it possible to draw a figure in the future and draw a line ...
0
votes
0
answers
11
views
Why V+1 in Embedding layer(`Embedding(V+1,D)(i)`) where V the vocabulary size?
Suppose
from tensorflow.keras.preprocessing.text import Tokenizer
tokenizer = Tokenizer()
...
V = len(tokenizer.word_index)
where V was the vocabulary size.
I was told that the embedding layer
x = ...
-2
votes
1
answer
104
views
Trying to design the preview of a Square in a C# form
I am trying to create a square by dragging the mouse while being clicked,I can create the sqaure alone but cant make it work with a preview.While it is being dragged previews shapes are not being ...
1
vote
1
answer
72
views
Create a new custom point shape for ggplot2
I would like to use a new point shape on ggplot2, and use it the same way as geom_point().
I know that ggstar implements some new shapes, but I would like to use the following:
It's created just ...
0
votes
1
answer
33
views
Pine script box/label too thick/vibrant. Possibly duplicate stacks?
The boxes and labels generated by this code:
TKO = #e91e63
TKObg = color.new(#e91e63, 90)
LDN = #2157f3
LDNbg = color.new(#2157f3, 90)
NYC = #ff5d00
NYCbg = color.new(#ff5d00, 90)
box.new(...
0
votes
1
answer
53
views
Trying to Change the Color of shape and 3D formatting
I've been attempting to use different color formatting, but I'm having trouble using msoShapeStylePreset, which allows me to apply color using RGB.
When I tried to apply the color using RGB, it filled ...
1
vote
0
answers
28
views
custom ShapeBorder in flutter stuck on top -> SOLVED
I've created a ShapeBorder for a Container, but when I use the shape is painted on the top of the screen
As seen in the image, the blank spot between the 2 containers (green & blue) is where the ...
-1
votes
0
answers
23
views
MinMaxScaler error with single-dimensional data
ValueError: Expected 2D array, got 1D array instead:
array=[ 4261.48 4261.48 4280.56 ... 28478.4 28471.63 28473.13].
Reshape your data either using array.reshape(-1, 1) if your data has a single ...
-1
votes
0
answers
13
views
Is there any way to insert a line shape and write vertical text between them in a DOCX document using Python's python-docx library?
enter image description here
You can clearly see the sidelines and the content on them, which is essentially vertical (This is the main issue). I tried my best to insert a line by the page border or ...
-1
votes
0
answers
33
views
How can I make my pygame shapes remain on the screen? [duplicate]
I have this program where I want to make this shape randomly appear and remain within this area 11 times. I've managed to make the shape randomly appear in this area 11 times, but I'm struggling to ...
-1
votes
0
answers
17
views
Is it possible to rotate a group of shapes by any degree? [duplicate]
I'm relatively new to python and I'm doing this pygame assignment for school.
I plan to make an object, an airplane, with a group of ellipses, arcs, and a polygon. Problem is that I need to be able to ...
0
votes
0
answers
30
views
How to draw 3D Shape in AnyLogic via Code
I want to draw a 3D Shape in AnyLogic via Code, so it is possible to draw by simply using the function. My current idea is something like this:
Shape3D obs = new Shape3D ();
// Set the position of the ...
0
votes
1
answer
25
views
Different mean symbols on violin plots using facet_grid
I would like to have the triangle mean symbol changed to open on the green violin plots when using facet_grid. Using ggplot2 I can get this on the single graphs (like the one below) by including '...
0
votes
1
answer
26
views
i was trying to copy animation effects from one shape to other, the motion path & fade effects were throwing's error Method/data member not found
i was trying to copy animation effects from one shape to other, the motion path & fade effects were throwing's error Method/data member not found. below is the code, is there any other way by ...
0
votes
2
answers
42
views
Automatically aligning the content shape of a button with the opaque parts of its image?
I've got an Xcode project set up with SwiftUI. The screen I'm working on has a scroll view:
The background looks odd because I have several full-screen images with transparent backgrounds that are ...
0
votes
0
answers
20
views
Create a dataset of images
I have a pandas dataframe with three columns. In each row, Column1 and Column2 are filled with an LxL numpy array, filled with 0s or 1s. L is different for every row. The third column is filled with ...
0
votes
0
answers
16
views
Copy animation effects from another ppt file to my current selected shape
The below code runs but gives out error "Please select a shape in the current presentation", even if its selected,
i was expecting it to copy animation of sourceshape(from another file) &...
0
votes
1
answer
37
views
CAD Shapes in MS-Visio Import
I want to extract all the shapes from a CAD file and use these shapes in MS-Visio with the correct sizing. I couldn't import them perfectly because I had already used add-ons in visio like "...
0
votes
0
answers
10
views
Change text or string to Arc Shape
enter image description herethis is my code and i want it to be more arc shape like the image below
ub.data.textShapeArcConfiguration = {
curve: 800,
offset_y: -1000,
text_height: 1600,
bottom: 1600,
...
0
votes
1
answer
32
views
r ggplot different size depending on shape
I have the following R code:
x <- rep(c(1:5), 5)
y <- rep(1:5, each=5)
z <- rep(seq(0, 1000, 250), each=5)
w1 <- c(15:18,25)
w2 <- c("\u25A0", "\u25CF", "\u25B2&...
0
votes
0
answers
23
views
The use of CommandButton Shape into a form locks the navigation bar
If I use text boxes in a form, whose display parameters (text, height, width, position, background color, ...) are contained in a table, everything goes smoothly; if instead of text boxes I use ...
0
votes
0
answers
14
views
Create custom shape then use UIPinchGestureRecognizer to increase and decrease size
I have basket court shape now I want to adjust it according to the user. User can adjust according to the direction of real environment court.
import UIKit
class basket_Court_Shape: NSObject {
@...
0
votes
1
answer
41
views
SwiftUI Custom Rounded RectangleShape
Does anyone know how to make a shape like this?
I followed apples tutorial and came up with this but it seems overly complicated for what I want to do and not perfectly rounded. It also seems hard to ...
1
vote
2
answers
135
views
How to make proper curve in SwiftUI?
I'm new to draw paths programmatically and my project requirement is as following. (forget the red rectangle one, it's for censor purpose only).
And my current code be like
import SwiftUI
struct ...
2
votes
0
answers
22
views
Grouping tiles in a mesh to roughly rectangular shapes
I am trying to write a program which produces a word cloud from a given image similar to:
I have split up my image using thresholding, and created a mesh / tile grid using kmeans:
I can't think of a ...
0
votes
2
answers
103
views
A common type for all SwiftUI Shapes
I write a code for SwiftUI that delivers a certain Shape depending on an Enum parameter. Unfortunately, a switch command, which seems natural for the purpose, complains that Rectangle(), Circle(), and ...
0
votes
1
answer
45
views
How to center text in a custom arc shape in SwiftUI?
I want to center textView in ArcShape, currently textView's startAngle is set to ArcShape's startAngle. So far, I've tried finding the midpoint of the ArcShape's startAngle and endAngle, but this ...
0
votes
1
answer
77
views
how to make a custom shape border like this in flutter , i want to use this shape in toolTip
here i have done something but i need to change the length of the arrow, how to reduce the length of arrow, how to do that in this code.
class ToolTipCustomShape extends ShapeBorder {
final bool ...
0
votes
1
answer
124
views
Drawing and animating multiple paths in a Shape in SwiftUI
I'm trying to implement animation like seen below.
To start with, based on completed being true or false, to show the appropriate shape ( + or ✓). On tapping of a button, I'd like for the shapes to ...
0
votes
0
answers
52
views
VBA Excel AutoShapeType not retained after copy
For a project I need to copy boxes (shapes of type msoShapeCube) from one sheet to another, multiple times. To place them properly one next to the other, the "ratio" of the cube is to be ...
0
votes
0
answers
23
views
How to calculate the vertex indices for the outline of a shape?
I want to calculate the indices necessary to draw the outline of a shape using clockwise winding. The example uses a square but it could be any regular polygon.
Given a square with vertices 0, 1, 2, 3,...
0
votes
1
answer
87
views
how to make a double circle connect graphic in adobe illustrator
I want to make a graphic like below in adobe illustrator. I can do the cut out parts i am just struggling to make the shape using path find and the line mark. What I tried to do was make 2 circles and ...
0
votes
1
answer
27
views
Creating a text type Shape inside a rectangle shape in Document in c# using Interop.VGCore
I am trying to automate a task of creating a rectangle with text inside it programmatically using Corel Draw type library.
But because of very less documentation present it is getting really tough for ...
0
votes
1
answer
99
views
Automate a task of editing cdr files in c# using corel draw type library
Update :
I am able to get the shapes now,
only insertion of texts is remaining, and I am not able to figure out the way to insert text.
Now I am getting an exception while creating the instance of the ...
0
votes
0
answers
47
views
Android - Compose - Create a Custom shape
I've been trying to make this shape in compose
I feel like I'm pretty close to it but I can't find a way to make the rounded shape at the bottom.
I tried using the bezier curve with cubicTo but I can'...
0
votes
0
answers
22
views
"I've set different dimensions for the image size and the input shape in tf.keras.Input, but it still works during training."
I have a question that has arisen during an experiment in model training, and I would like to ask it.
This is related to the difference between the Keras dataset image size and the model's input layer ...
1
vote
0
answers
46
views
Is there any way to access the stroke width (or style) within a SwiftUI view?
I want to create a custom Shape and give it the same height as its stroke width.
struct HorizontalLine: Shape {
func path(in rect: CGRect) -> Path {
let verticalCenter = rect....
-1
votes
1
answer
248
views
ValueError: could not broadcast input array from shape (2,128) into shape (1,128)
i'm creating a neural network that predict different type of drugs, and i'm getting an error that i don't understand and i don't find the issue in the code, if anyone can help me and give me an ...
0
votes
0
answers
27
views
C++/WinRT: How to merge elements of a geometry group?
I tried to create a shape using a GeometryGroup:
Canvas canvas = Canvas();
myBorder.Child(canvas);
winrt::Microsoft::UI::Xaml::Shapes::Path path = winrt::Microsoft::UI::Xaml::Shapes::Path();
path....
0
votes
0
answers
17
views
Convert Multipolygon to use it to filter species occurence with spocc::occ
Hi all I have a shapefile which I want to use to filter species occurences. But the funtion of spocc::occ cant use multipolygons. How can change the format to use it for this function.
#area of ...
0
votes
1
answer
59
views
How to find how much of a circle hangs out of a rectangle
What is the area of this circle that hangs out of the rectangle (imagine the rectangle stretches out to (infinity, infinity) on both ends), and how can I generalize this to any circle of any radius as ...