Questions on the construction of 2D and 3D graphics through the direct use of primitives, directives, and functions. Include the graphics3d tag for questions specifically on 3D graphics. This tag is not to be used for basic questions on visualizing functions and lists using the various flavors of ...

learn more… | top users | synonyms

0
votes
2answers
117 views

Parametric Plots [continuous and discrete]: --showing parameter increase for multiple values of another parameter

In my problem, I am effectively plotting a parametric function that depends also on an outside parameter, e.g., the real/imaginary parts of ...
21
votes
3answers
1k views

Finding a function that fits the shape of an image

How can I find a function that fits the given shape of an image? Or instead extract a point set from the shape and then find an interpolating function fits the shape. An example image is attached.
0
votes
0answers
50 views

Changing the style of the Error Bars

I'm trying to get to change the length of the line at the top and the bottom of the error bars, but I have no idea how to do it. Can anyone help? Thanks!
4
votes
2answers
285 views

How to generate mesh and calculate volume of 3d object?

I saw a couple of posts dicretizing the graphic and generate DelaunayMesh to get volume of 3D object. The issue I'm having is that DelaunayMesh creates a bigger solid covering the original one, ...
0
votes
0answers
78 views

Dynamically update a graphic object in Mathematica [duplicate]

I was trying to simulate a bouncing ball (with no gravity) in a unit box and I managed to come up with a solution: ...
4
votes
1answer
197 views

VertexRenderingFunction (or EdgeRenderingFunction) with movable nodes?

In GraphPlot, I'd like to use VertexRenderingFunction (VRF) and have the resulting object behave the same way under dragging verticies as it does when I do not use VRF. The same issue occurs for ...
0
votes
1answer
58 views

EdgeRenderingFunction For 2 Vertices in a Loop

Assume there is a set of rules: set = {"A" -> "B", "B" -> "A", "B" -> "C", "C" -> "D", "D" -> "A", "C" -> "C"}; which we want to graph using ...
-3
votes
3answers
164 views

How can I plot a polygon with n sides inscribed in a circle and show the area?

I am doing some work on Archimedes and want to show what the area of a regular n-sided polygon is within a circle. My professor from two years ago was able to show it with an adjustable slider that ...
1
vote
1answer
75 views

ListPlot and AspectRatio

Here is a simple scenario ...
0
votes
1answer
171 views

Drawing an dodecahedron with vertexes at given coordinates

I want to draw an (edit)dodecahedron with the vertex in the following coordinates: ...
0
votes
1answer
71 views
2
votes
1answer
136 views

How to plot on complex plane with Mandelbrot set

I essentially want to treat the Mandelbrot set plot as a normal plot so that I can plot arrows and points on top of it. This is what I want to do but it gives me an error: ...
2
votes
2answers
241 views

How to change the font color and size of tick labels by default

I've read Mike Honeychurch's answer here, and while it tells me how to change the font size on all of my plots, that size change affects (I think) all text on the plot. I would like to be able to make ...
1
vote
1answer
279 views

Show plot legends for multiple curves in one plot [closed]

I have 5 curves, figure1a0, figure1a001, figure1a01, figure1ae01, and figure1ae001,. I display all these curves in one plot with Show. I want to give a label to ...
16
votes
5answers
3k views

3D surface that looks like a virus

I have been recently using Mathematica for composing animations that are part of the supplementary information of my papers. I am currently trying to build an animation that involves a viral ...
0
votes
0answers
78 views

How to add a Bar Legend to a density plot over the surface of a sphere?

I have a function with variables (theta,phi) the spherical coordinates. I want to represent it as a density plot over the surface of a sphere. following an answer to a previous question Density ...
11
votes
4answers
503 views

Drawing a Gradient Between Two Circular Arcs

Suppose I wanted to use Mathematica graphics primitives to create a gradient of colors between two circular arcs. It's easy enough to make an area between two circles a solid color, but what if I ...
2
votes
2answers
184 views

A plot with labeled points in one plotting command?

For my work, I am examining the values of a complex function as I vary the input according to a real parameter, and I want to both give the general plot and the plot of specific points, with labels ...
4
votes
3answers
251 views

Problem about an ant walking up a hill

An ant is walking up a hill given by $f(x)$. At what point can it see a blade of grass. I've been working on this problem with Mathematica and by hand. Help with either would be fantastic. The ...
8
votes
1answer
224 views

How to display MeshRegion without vertices

I'm writing a library for handling very large and complicated (boundary) mesh regions on the order of ~150,000 vertices, ~450,000 edges, and ~300,000 triangles. The regions themselves are the cortical ...
1
vote
1answer
191 views

Adjusting contrast of a color scale with ListDensityPlot

I am using ListDensityPlot to plot data of the form {{x1,y1,z1},{x2,y2,z2}, …}. It results in the plot shown below. But I'd like to adjust the color scale contrast to better show the variations in ...
1
vote
2answers
88 views

combine two ParametricPlot3D plots

I have the following parametric equations ...
1
vote
1answer
81 views

LayeredGraphPlot: how to specify edge endpoints?

What directive within the LayeredGraphPlot command specifies where the edges attach to vertices? For example, instead of the left output below, I'd like to have the right one. ...
7
votes
2answers
276 views

How to make Inset graphics maintain relative sizes when combined

I am learning a little about Inset, but after trying all options, I can't get this to work. I need to inset separately made Graphics2D objects, into one main ...
0
votes
0answers
144 views

2d perspective projection of a sphere

I am looking for improved quality of 3d plots. I don't want to keep the object in Mathematica notebook - just export it to a .pdf file. Because it will be just one "side" of the plot I was thinking ...
4
votes
2answers
189 views

Why can't a Plot be rendered by Graphics if it's a member of a list?

I grabbed the code to render a gear from a Mathematica Demo, but I'm having difficulty reproducing the way it's to be used: ...
3
votes
0answers
78 views

Strange extrapolation in ListContourPlot?

I have some Table of {x,y,z} values (energy as a function of radial and azimuthal frequencies in a galaxy if you care to know): ...
5
votes
4answers
884 views

Creating a realistic, photo-like 3D effect from an image or document

Suppose I have an image or a document, provided in a high-quality PDF file. You can open and view it in a PDF viewer, but then it has a kind of static look: it's not something tangible, it's just an ...
0
votes
0answers
80 views

ListDensityPlot seems to break down for large arrays

(Using Mathematica 10) When using ListDensityPlot to plot 40000 + data points, the produced plot seems to be blurred/incorrect for points occurring later in the list. For instance, in the following ...
0
votes
0answers
43 views

ColorFunction in GeoRegionValuePlot

I don't understand ColorFunctions so any general pointers will be greatly appreciated. My specific question is the following. I want to animate a GeoRegionValuePlot. In the toy case below I have two ...
3
votes
3answers
401 views

How to create a Disk with smoothly changing coloring?

I want to have a disk. But this disk shouldn't have a fixed color; instead, I'd like it's color to fade smoothly. Until now, I came up with two ideas how to achieve this. Idea #1: ...
11
votes
1answer
142 views

Incorrect use of Scaled causes crash

Bug introduced in 8.0 and fixed in 10.1.0 While playing with Scaled, I made a syntax error which caused a crash instead of an error message ... Do you get the ...
3
votes
1answer
165 views

Keeping Font Relative Size to Object/Graphics/Plot Object upon Resize

I want to keep the text generated within a graph/plot to remain the same relative to an element (a disk of size 0.2) of the image upon resize, not the image itself, while maintaining the original ...
1
vote
1answer
84 views

Histogram 3D: use different bin width in two directions

I'm trying to plot an histogram of a set of data, I would like to use a bin of different width in x and y direction. I've tried using the following two codes: ...
1
vote
1answer
64 views

Possible to dynamically redraw single plot of multiple shown together?

I am attempting to create a tool to visualize gradient, eigenvector, and eigenvalue information for a 2D surface. I want to show a contour plot of an inputted function and overlay the gradient and ...
3
votes
1answer
57 views

LineScaledCoordinate problem for exact coordinates

Edit: Confirmed bug. CASE:2326540. Still the case in V 10.1. Solution: Wait and use N meanwhile. I've faced this problem ...
13
votes
5answers
731 views

Animate point going around a triangle

How can I animate a point moving on a triangle's sides? I can generate a triangle and point, but I have no idea how to define point movement. I'm guessing that I have to use $\sin$ and $\cos$ in ...
2
votes
1answer
107 views

How do you plot polygons with GeoRegionValuePlot?

How do you plot polygons in GeoRegionValuePlots? I'd like to reproduce what the call (2) (below) does with something like the call to (4). As you can see using GeoDisk(s) (3) works but the call (4) ...
2
votes
1answer
81 views

Epilog does not work as expected with Show [duplicate]

I was trying to answer this question (here) and I found that I can't use Epilog with Show. consider this Example: ...
1
vote
0answers
63 views

Version incompability Mathematica 10 CDF Player 9

I have aleady looked at these two questions: Is there a CDF Player for Mathematica 10? and Problem with NDSolve in Mathematica 9 / 10. My problem is as follows. I am simluating neurons, which ...
0
votes
0answers
31 views

ErrorBarFunction styles [duplicate]

I am having trouble making sense of the help I have found for the ErrorBarFunction command. I am looking for basic instructions on how to change the width, style, and color of my error bars. ...
0
votes
1answer
62 views

Why does `Table` returns values but `Plot` doesn't plot them?

The Table function works fine and return a nice list of values ...
2
votes
1answer
224 views

Drawing all lines between a set of points

Given that I have the array of points, ...
-1
votes
1answer
111 views

Finding the pixel positions for the straight line joining two points [duplicate]

Please help me solve the given problem. Find the pixel positions for the straight line joining P1 (10, 20) and P2 (18, 25)
4
votes
3answers
381 views

How can I make an linear breakdown chart similar to those seen on iCloud? [duplicate]

How can I make a interval breakdown chart like this: Update: I checked BarChart and Gauge they do not have this capacity.
3
votes
3answers
388 views

Using DiscretePlot to graph the Riemann sum of a parabola

I want to graph the Riemann sum (upper sum) of $y=x^2$ with $1\leq x\leq 4$ using 6 rectangles. I want the rectangles to be green. On the Wolfram Mathworld website, I can render exactly what I want ...
3
votes
0answers
77 views

cut and project tilings — Amman Beenker tilings

A certain research paper gives a recipe for building Amman-Beenker tilings as a special type of cut-and-project algorithm. The result is usually a pleasant kind of aperiodic tiling shape. The ...
0
votes
2answers
88 views

How to create a custom filling with ListPlot

We have the following simple example ...
2
votes
1answer
176 views

Rasterized density plot with vector axes

I'm wondering if there is an easy way to get the plot below exported in a small pdf? The plot below is made in the following steps: step 1: Create a streamplot step 2: Create a densityplot, where ...