Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
32 views

How to use contour labelformat in plotly python?

I am trying to adjust labels for level contours. Example is given below. However, while it doesn’t cause any errors, there is no visible change in the labels. import numpy as np import plotly....
H.C.'s user avatar
  • 41
1 vote
1 answer
87 views

plt.contour() plots series of lines instead of a contour line

I aim to plot a contour plot of flux, but instead of closed contour curves, plt.contour() returns a series of lines with the same height. Psi is defined as a np.array and has a 320 by 200 shape. fig, ...
Yegor Chetkin's user avatar
-3 votes
0 answers
29 views

2D bounding box of shapes with small gaps between them [closed]

enter image description hereI want to find a code that draws the smallest 2D box containing the placed shapes, and calculates the [black/total area] within this area. However, the codes I found had ...
user30309011's user avatar
0 votes
1 answer
33 views

How export z values with shape file

I have successfully created a filled contour map with UTM data from a numpy array and exported to a shape file, but the shape file only has polygons with no other data. The partial code is: #Convert ...
Rathpr's user avatar
  • 3
-1 votes
1 answer
78 views

How to measure the length of image from a masked image using OpenCV?

I am new in image processing and I am trying to improve myself by doing some projects and I have a problem about my project. I have an image dataset containing lakes with their corresponding binary ...
NewPartizal's user avatar
  • 1,138
1 vote
1 answer
111 views

How to Detect Thick Lines as Single Lines Using Hough Transform in OpenCV

I'm using OpenCV's HoughLinesP function to detect straight lines in an image. When the image contains thin lines, the detection works perfectly. However, when the image contains thick lines, the ...
Kuldeep J's user avatar
  • 566
0 votes
0 answers
21 views

Getting values of contour within polygon path

I have the following issue. I have a function of two variables defined on a regular grid via np.meshgrid and I would like to get the coordinates of the points on some contour, within a bounding region ...
N P's user avatar
  • 1
0 votes
1 answer
94 views

Drawing a bounding box around the largest contour python CV

I'm struggling to get the bounding box for an identified area in an image. The following code results in this image: https://i.sstatic.net/6HX4dNrB.png. However, as might be obvious from the picture, ...
Patrick Plaatje's user avatar
0 votes
1 answer
24 views

gnuplot contour stops before reaching border

I have a file with a field (vr-cs) defined between -0 and 30 in x and -30 to 30 in y. You can download the file from here. I'm trying to plot a contour of vr-cs=0 between [0:8][0:3] set view map set ...
bedwere's user avatar
  • 41
0 votes
1 answer
28 views

How to display drawdown contours calculated with the Theis equation to display on an interactive map in Dash with Python?

I have created a Dash app using Python with an interactive map using mapbox. I want to generate drawdown contours at 10-ft intervals out to a 1-ft drawdown around a specified lat/lon using the Theis ...
user29044372's user avatar
0 votes
0 answers
20 views

How to define contour levels is irregular intervals for a contour plot type “level” - Plotly

i have same problem like this thread https://community.plotly.com/t/custom-contour-levels-for-a-contour-plot The problem is : Is there a definitive way to plot custom contour levels yet? I’m ...
xembong365com's user avatar
0 votes
1 answer
41 views

selecting a contour from multiple contours of same level

I'm Trying to obtain the contour at a given level, say 23 C from a time vs depth data of temperature. The contour 23 is overlaid onto the figure. How do I isolate and select one single contour path ...
Ranjan Kumar Sahu's user avatar
0 votes
0 answers
23 views

How to create 3D surface with different layers that each have their own colormap in matlab? [duplicate]

How can I create a 3D map of the glacier (bedrock + glacier surface + debris surface) with each a different colormap in Matlab? I tried several things but it does not work. Only 1 colormap is used and ...
Yoni Verhaegen's user avatar
0 votes
0 answers
33 views

Index Error when Restricting the Levels in ax.clabel

I am trying to put labels on a subset of levels in a contour plot at specific locations. A minimal toy code that reproduces the error is import numpy as np import matplotlib.pyplot as plt ...
Vincent Lee's user avatar
0 votes
1 answer
113 views

Large contour not found in binary image

I have a binary image (binary_image_full_sizes.png) and I would like to find the large oval contour in the middle. The cv2.findContours() function does not return the contour I’m looking for but when ...
Jacob's user avatar
  • 17

15 30 50 per page
1
2 3 4 5
187