This code snippet uses Python/OpenGL (http://pyopengl.sourceforge.net) to open a window using GLUT, and draw a sphere into it. I've used this many times as the starting point for more complicated applications.
GreatCharts is a program which will let you draw a wide range of stock-charts, for example Candlestick, OHLC and functions like MAC, Stochastic, RSI, etc.
Chart can be plotted in a very configurable way, to any picture size.
A circle of radius 0.5 is inscribed inside a square with side length 1. Script picks N points at random inside the square. It then checks to see if the point is inside the circle and then generates a figure in which the points ''in'' and...
Splinedraw will let you draw a curve in the current plot by setting/deleting/moving points which are then connected by a spline. The points' coordinates are printed in the command window. Can be used to draw a trend line manually.
Draw a path moving horizontally and vertically that passes through each open square. The blue runner will always run straight, as far as possible, stopping only when blocked.
Pan with left click mouse drag, draw a zoombox with right click drag, and view all data with double-click. This also retains any existing WindowButtonXFcn the figure has, as well as any axes UIContextMenus.
I wrote this for live data...
This program allows the user to manually draw a Region of Interest (ROI) in an image. All points within the ROI are analyzed to yield mean value, std, min and max value, and median. The output is a structure with the ROI control points and...
CYLINDER: A function to draw a N-sided cylinder based on the generator curve in the vector R. It is based on file exchange 5468. I changed a little bit so that it can generate more points on the surface of the cylinder.
Edit a graph or draw a new one with this GUI.
Usage: >> graph_gui; or >> graph_gui(A,xy); Controls: Use the radio buttons to select an action: 1. To DRAW a new VERTEX, select 'Draw' and...
[p1,p2]=rbline(varargin)
Function to draw a rubberband line and return the start and end points. Usage: [p1,p2]=rbline; or [p1,p2]=rbline(h); where h is an axis handle. Click the mouse in the plot to define the start point. A rubberband...
The PHP Gift Registry is a web-enabled gift registry intended for use among a circle of family members or friends. It is intended to fill the following purposes: - Permit the long-term storage of a list of items one desires, along with its...
This is a good example of the integer midpoint circle algorithm. No pixels are missed or repeated.
A simple checked box (without text) in which you can draw several types of mark (v or x), you can draw two marks one upon the other in a circle or square box with personalized colors.
Take a center point, a normal vector and a radius and plots a Circle in 3D using plot3
Sometimes when visualising the results of a cluster analysis using a dendrogram, showing all points in the dataset results in a rather cluttered plot. This can sometimes be improved upon by using a polar dendrogram, which spreads out the leaf...
TEllipseBevel is a very simple component designed to display a circle or ellipse bevel.The main difference between TEllipseBevel and any similar component lies in it's ability to adjust it's color to the color of the backround, ie. the owner...
returns a set of 2D coordinates from a 3D triangulated surface. 2D points are disposed inside a circle of unit radius so they represent a parametrization of the initial surface.
The triangulation is represented by the n x 3 t array.
The MATLAB file contains a method to find the value of pi. This is just an extension of the general method of finding pi from within a circle. It uses 3D-matrices and some more stuffs, which can be very helpful for educational purposes. Also, do...
function [yline xline] = drawslope(I, alpha, refpoint) % % function to draw a line at a desired angle <alpha>, % which goes through a reference point <refpoint> % function inputs: % <I>: Image for which...
EZLines is a library capable of drawing anti-aliased lines with additional properties. In comparison to windows lines it can draw a line with transparency en line style at width greater than one. Drawing shapes like a rectangle, ellipse and bezier... |