1,433 questions
Tooling
0
votes
1
replies
49
views
How to calculate the area of irregular shapes programmatically?
Body:
I’m working on calculating the area of irregular shapes (such as polygons with uneven or non-parallel sides) in code.
I understand how to calculate areas for regular shapes, but I’m unsure what ...
1
vote
1
answer
61
views
Is there a problem with calculating triangle area using two vectors instead of three points?
I looked up calculating the area of triangle given three vertices.
func calculate_area_of_triangle(a: Vector2, b: Vector2, c: Vector2) -> float:
return abs((a.x * (b.y - c.y) + b.x * (c.y - a.y)...
0
votes
0
answers
19
views
Dividing area smoothly with curves using a few points (like in Steel Division 2)
The game Steel Division 2 has a very nice looking frontline system, where a smoothly curved line is drawn between friendly and enemy units, dividing the map into territorty owned by two teams.
Does ...
2
votes
1
answer
110
views
OpenCV: understanding the filterByArea parameter used in SimpleBlobDetector
I am trying to detect a large stain using OpenCV's SimpleBlobDetector following this SO answer.
Here is the input image:
I first tried working with params.filterByArea = False, which allowed to ...
1
vote
1
answer
278
views
How to Fill the Area Between Two EMA Series in Lightweight Charts Using a Plugin?
I'm working with Lightweight-charts by TradingView and want to create a custom plugin that fills the area between two series of Exponential Moving Average.
I know that the Lightweigh-charts does not ...
1
vote
1
answer
91
views
Colour above and below intersecting curves separately using ggplot in R?
Other similar questions have been asked here, but they are slightly less complicated than my issue.
Im plotting two curves geom_line using ggplot2 in R. Let's call curve 1 the "baseline". ...
0
votes
1
answer
113
views
Combine lineplot and area plot in Python
I have the following dataframe showing a certain measure for two indices for each day, and the respective difference between the indices at the very right. Just showing a few days for simplicity ...
1
vote
1
answer
103
views
Intersection Color Not Showing Correctly
Seeking help to troubleshoot Vega Lite area chart.I need to get the intersection area between "activity" and "stop" line correctly colored.
I did use transfrom to create two parts ...
0
votes
1
answer
90
views
Finding percent cover of a raster image
I Have a raster layer in QGIS - The raster symbology represents 5 classes ranging from <0.2% to 0.9%. These classes represent vegetation densities. I would like to know what percent of each class ...
0
votes
0
answers
18
views
Remove empty plot section of long ggplot2 plot [duplicate]
I have a very long plot done with ggplot2 intended to be scrolled along in a Shiny app.
ggplot2 plots a big chunk of unused area at the beginning of the plot, and at the end.
Is there any way to avoid ...
0
votes
1
answer
107
views
3d polygon area calculation algorithm
Hi I need some help with this question.
We have a list of Points of (x, y, z) and these points make a polygon and I want to implement a pseudocode that can calculate this polygon area in 3D space.
...
0
votes
1
answer
76
views
obtain hexagon areas from a matplotlib.pyplot.hexbin plot
I am trying to plot mass surface density using hexbin because my input is a dataframe of thousands of points with [lon, lat, mass]
hexbin is fast and I want to generate a surface density map (in this ...
0
votes
1
answer
94
views
Can VBA be used to set print area as a formula in a sheet?
I am using VBA to create sheets from a template and then creating named ranges scoped for each sheet created. Each named range corresponds to the print area that would be a page when printed. I also ...
0
votes
1
answer
172
views
Area under the curve for a dataset and 2 sets of baseline
Do not know if this problem is posted somewhere else, please direct me to it if that is the case, thanks
I have some data that looks like this
I want to calculate the area under the curve, however as ...
0
votes
0
answers
73
views
Matlab code for cumulative area calculation
I have plotted a graph of load and displacment shown below:
The area enclosed within this graph is energy dissipated. I want to know what the area is inside each loop the graph makes. For example, I ...