graphics

Generate a new set of points along a line

Generate a new set of points along a line Question: I have a Python project where I need to redraw a line many times with the points in random places but keeping the line’s shape and point count roughly the same. The final output will be using polygonal points and not Bezier paths (though I …

Total answers: 1

Projection of a 3D circle onto a 2D camera image

Projection of a 3D circle onto a 2D camera image Question: Asked this on math.stackexchange, but no responses so trying here, hopefully the computer vision people are more able to help out. Assume that I have a 3D circle with a center at (c1, c2, c3) in the circle coordinate frame C. The radius of …

Total answers: 1

Manipulate an application window frame using Python

Manipulate an application window frame using Python Question: TLDR: Is there a Python library that allows me to get a application window frame as an image and rewrite it to the said application? So the whole story is that I want to write an application using Python that does something similar to Lossless Scaling and …

Total answers: 1

Visual bug in the raytracer?

Visual bug in the raytracer? Question: I do not know if this is a bug or normal behavior, but I am confused by an elongated object in the reflection of a red sphere, what is it? My scene: s = Scene( [ Light( type_=LightType.ambient, intensity=vec3(0.2, 0.2, 0.2) ), Light( type_=LightType.point, intensity=vec3(0.6, 0.6, 0.6), position=vec3(2, 1, …

Total answers: 1

Phyton: graph from csv filtered by pandas shows no graph

Python: graph from csv filtered by pandas shows no graph Question: I would like to create a graph on filtered data from a .csv file. A graph is created but without content. Here is the code and the result: # var 4 graph xs = [] ys = [] name = "Anna" gender = "F" …

Total answers: 1

Adding multiple lines to a strip plot in plotly

Adding multiple lines to a strip plot in plotly Question: I would like to add multiple short lines to a strip plot in plotly, preferably in a way that scales to adding more columns/categories. In my actual problem I have quite a few more columns. It would also be awesome if these lines could have …

Total answers: 1

Display xticks as integers in log-log scale

Display xticks as integers in log-log scale Question: I’m trying to replicate the following scatterplot with the data I already have. The figure plots F_n vs n on a log-log scale (black dots) but the x-axis and y-axis represent the actual numbers and not the powers of 10. The blue line is the line of …

Total answers: 1

Understanding the view and projection matrix from pybullet

Understanding the view and projection matrix from pybullet Question: When working with rendering images in Pybullet, one has to use getCameraImage which takes as inputs a view and projection matrices (pybullet also have functions to generate those matrices). In theory, the projection matrix should be P = K[R|t], it can be re-written as P = …

Total answers: 3