Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
71 views

How to get the frame buffer of current Activity's window surface on GPU side without copy?

I need to get the image of current activiy surface with 30-60 FPS and use it as the source texture in opengl es for rendering. I found the API PixelCopy can copy the window surface to bitmap, but I ...
dragonfly's user avatar
  • 1,219
0 votes
0 answers
41 views

How do I clearly combine a 3D scatter plot and a surface plot together?

I think my problem is fairly simple. I've managed to find a way to plot my 3D surface against a set of discrete data points, but the issue now is that it is not clear to see whether the points lie ...
James's user avatar
  • 1
4 votes
2 answers
98 views

How to replicate the following density plot in Python?

Given the following setup, N_r = 21; N_theta = 18; N_phi= 36; r_index = N_r-1; [phi,theta,r_sphere] = np.meshgrid(np.linspace(0,2*np.pi,N_phi),np.linspace(0,np.pi,N_theta),np.linspace(a,b,N_r)); X = ...
Researcher R's user avatar
0 votes
2 answers
56 views

Wrong color values for 3d plot in matplotlib

I'm trying to render a complex function using matplotlib. I'm trying to plot a 3d graph using (x = Re z, y = Im z, arg(f(z))). The idea was to color the faces of the plot in a way that represents mod(...
Luke__'s user avatar
  • 255
6 votes
1 answer
52 views

Plotting a function inside a polygon in Matlab

I want to know if there are any ways to plot a given function with domain restricted to a polygon with given vertices, in Matlab. For example, how can i plot the function f =@(x,y) x.*y inside the ...
Davide's user avatar
  • 193
0 votes
0 answers
47 views

Image in pygame is black

When I load my image in pygame (see code below), the image appears pitch black, instead of drawing properly! Using Python 3.12.8 import pygame pygame.init() def imageload(imagepath): return ...
thesquaredude's user avatar
2 votes
0 answers
15 views

mplot3d truncating data at 50

Having looked at the documentation and having tried many implementations of rstride and rcount to force mplot3d to plot more than 50 x,y,z datasets. I am not getting downsampling, I am getting ...
T Simmons's user avatar
1 vote
2 answers
53 views

How to change default cmap behavior with plot_surface()?

How can I use cmap to have a color gradient determined by x values rather than by z values? import numpy as np import matplotlib.pyplot as plt n = 20 s = 0.05 y = np.linspace(-s, s, n) z = np....
mins's user avatar
  • 7,604
0 votes
1 answer
128 views

CATIA VBA Macro Error - Invalid Procedure Call or Argument

I am writing a macro in CATIA that prompts the user to select a cylindrical face. The purpose of this macro is to create an axis line from the selected face. However, I am encountering the following ...
Wealnut's user avatar
0 votes
0 answers
42 views

CGAL surface reconstruction hanging on large (100,000+) point clouds

I'm using the CGAL method found here for surface reconstruction and while it works fine for the sample it hangs and essentially times out for larger point clouds, can it just not handle larger files?
vvv's user avatar
  • 11
0 votes
1 answer
50 views

Matplotlib - size of 3D subplot within figure

I want to create a 3D plot of some data. First, I download the data: # Import the libraries import numpy as np import pandas as pd import pandas_datareader as pdr import datetime import matplotlib....
NC520's user avatar
  • 399
1 vote
1 answer
107 views

How to slice a 2D line plot to create a 3D surface plot (or contour plot)? Python

Problem: I have a CSV file with 2 columns, Time and Intensity, which I can plot to get a very dense line plot. Time ranges from 900 to 11'496 seconds and for each second I have 200 observations. ...
jhupiterz's user avatar
2 votes
1 answer
63 views

Bezier surface matrix form with directional derivatives

I previously asked a question regarding the Bezier surface matrix form and received a great answer, but further studying their construction, I decided to modify the code and add the calculation of ...
llsly's user avatar
  • 43
2 votes
1 answer
81 views

Bezier surface matrix form

I have a problem with constructing a Bezier surface following an example from a book, using mathematical formulas in matrix form. Especially when multiplying matrices. I'm trying to use this formula I ...
llsly's user avatar
  • 43
0 votes
1 answer
102 views

3d Surface plots in R - conversion from dataframe to matrix for plot_ly [closed]

Does anyone have any advice, or can point me to a resource, to help with converting a dataframe to a matrix for use in a plot_ly 3d surface graph? There are a few questions similar to this, but none ...
5imon's user avatar
  • 35

15 30 50 per page
1
2 3 4 5
72