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

4
votes
1answer
75 views

Is it possible to get the locations and dimensions of all boxes in a StandardForm expression renderation?

I can select all the boxes in a StandardForm rendered expression, like I've selected the left parenthesis in the picture above. Is it possible to get the positions and dimensions of all of these ...
4
votes
1answer
141 views

How to use Epilog with Tradingchart

I am making a Tradingchart with data returned from Financialdata. I find I cannot add a line to the chart by giving the option <...
4
votes
1answer
715 views

How to create an interactive map of the 50 states showing certain data in tool tips boxes for health care policy development?

To create a means of displaying information about the distribution of primary care providers, the population density and the average yearly Medicare expenditure per enrollee for each state, I would ...
4
votes
2answers
400 views

remove quotes in a combination of a text with graphics in the JournalArticle Style

I have a puzzling and very specific question. It may be of limited interest to community. I apologize in advance in this case. Let us see. I am making an illustration to a text that I write in the ...
4
votes
0answers
72 views

Size problems combining objects in a Graphics using Inset

The Problem I need to put together different graphics objects in a precise way inside a Graphics. Some objects are drawn directly by graphics primitives, some ...
4
votes
0answers
125 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 ...
4
votes
0answers
308 views

Memory problem with producing complex graphics of general type

The problem I am about to ask has appeared once here: Memory Leak in Frontend - anyone know a workaround?. However, in this question I would like to put it in a bit different context. Problem recipe: ...
3
votes
3answers
551 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: ...
3
votes
3answers
543 views

How would I plot the volume element in cylindrical coordinates?

I have this graph: But it doesn't have a function so I can't just plugin in a function into wolfram or mathematica to plot it. I have these coordinates to make it however: ...
3
votes
4answers
285 views

How to improve the quality of the ListPlot output

I need to plot massive data stored in external ASCII files. Below is the Mathematica code I use for this job: ...
3
votes
3answers
111 views

How to use Show in case one of the graphics doesn't exist?

I tried to combine three and more graphics with the Show command; but sometimes there is no data, so some of the graphics are empty lists. I tried this: ...
3
votes
2answers
752 views

Mapping points on the unit circle

I have a set of points P that are evenly spaced on a square grid of length 1. I would like to map these points to the circle of radius 1 as nicely as possible, while preserving relative positions as ...
3
votes
2answers
1k views

Add coordinate axes to a 3D plot of concentric spheres

I want to add coordinate axis to a figure of nested spheres. I have the command. ...
3
votes
2answers
935 views

Animating a 3-D arrow given the vector's x, y, and z components as a function of time

I am trying to show how a vector M varies over time. I have the following code: ...
3
votes
4answers
574 views

Interpolating a plot with missing values

With data = {{1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}, {6, 6}, {7, 5}, {8, 4}, {10, 3}, {10, 2}, {11, 1}} and ...
3
votes
3answers
260 views

How to convert an output of a matrix into a PNG image?

Using @m_goldberg's code I have created a matrix with the following command: ...
3
votes
2answers
130 views

GridLines for a coordinate system with a particular basis

Suppose that I use the vectors (2,1) and (-1,1) as a basis for $R^2$. ...
3
votes
3answers
683 views

How to simultaneously change the color and thickness in ContourStyle?

When plotting contours with ContourPlot, one can use the option ContourStyle to change the contours of the plot. With the ...
3
votes
4answers
218 views

Rectangles of the Same Size Aren't Shown the Same!

I've written a mathematia code which arranges $n$ unit squares in columns of length $m$ (of course, when $n$ is not divisible to $m$, then the last column is not full). This is the code: ...
3
votes
2answers
2k views

How can I invert the colors in a color bar

I have this Mathematica code ...
3
votes
2answers
969 views

X label in GraphicsColumn is cut off

I'm trying to use GraphicsColumn to plot two curves with very different ranges. for example, ...
3
votes
3answers
206 views

Create graphic object using {x,y} points, and plot a contour over it

I am trying to create a graphics object (polygon built with {x,y} points)so I can plot a contour over it. I would like the coordinates of the contour plot and graphics object be matched (ie, {0,0} in ...
3
votes
2answers
426 views

Projection of triangles onto a sphere

I am trying to find the solid angle taken up by a large set of triangles around a central point. I have normalized the vertices of the triangles to a unit sphere around the central point, But the ...
3
votes
3answers
170 views

Colorize an image using two parameters

I have a matrix of data. I use Colorize[Image[Rescale[data]],ColorFunction->"Rainbow"] to create an image from the data where the value of each pixel is used ...
3
votes
3answers
292 views

Connect each point in the plot with all adjacent points

I have the following simple code. I need to connect each point in the plot with all adjacent points in vertical or horizontal line. ...
3
votes
2answers
2k views

Trying to generate a list of data to plot a graph with error bars. Need help creating the looping function

This is the sets of data I want to put into a form which will allow me to plot error bars from the min and max data. ...
3
votes
2answers
247 views

Rotate doesn't work with BarChart and BoxWhiskerChart

Rotate@BarChart[RandomReal[1, {4, 5}], ChartLayout -> "Percentile"] Even though the FullForm generated by BarChart is Graphics expression, Rotate has no ...
3
votes
2answers
131 views

Changing location and direction of axes

I need to produce a plot that looks something like this: from a function definition where z (the vertical axis) is the independent variable. I can easily invert ...
3
votes
2answers
262 views

Adding dynamic graphics to an animation

I'm making this demonstration that draws a parametric plot of the unit circle, while at the same time has two plots off to the side that draw the sine and cosine curves. I have this made up as an ...
3
votes
2answers
689 views

Adding labels and numbers in axes

Let's see the following test case ...
3
votes
1answer
358 views

ContourPlot is slow and unwieldy and generates a large-data graphic

I'm constructing a single contour showing the points in a plane that satisfy a function. The general form is ContourPlot[f[x, y] == 0, {x, 0, .5}, {y, 0.2, .5}] ...
3
votes
1answer
217 views

ListPlot with conditions

I have a data file containing the position of about $10^5$ stars of a spiral galaxy. Here is the plot and this is the corresponding code ...
3
votes
5answers
143 views

ListPlot with colors

Let's create some sample data n = 100; d00 = Table[{RandomReal[{-1, 1}], RandomReal[{-4, 4}], RandomReal[{-1, 1}]}, {i, 1, n}]; Now I want the following: create ...
3
votes
2answers
97 views

How to remove parts of a curve?

I have a curve that have some unwanted parts. How can I remove them ? Or how to constraint the curve to a specific region ? Here's a MWE that shows the problem : ...
3
votes
2answers
141 views

how to use filling in Graphic plots

i'm going to plot some angles in Trigonometric circle by using Graphic command how can i use filling axes by different colors in this program or color between the angles? ...
3
votes
2answers
201 views

How to cut a thick curve in half lengthwise?

Is there any easy way to cut a thick curve in half lengthwise? Example: suppose I have the cardioid shown in the figure below, is there a way to delete either the inner or the outer portion of the ...
3
votes
4answers
573 views

drawing core-shell structure [duplicate]

I am pretty new in Mathematica drawing. I am trying to draw a core-shell structure, it means a core sphere with a shell sphere, like this It can be in 2D or preferentially in 3D. Does someone can ...
3
votes
3answers
413 views

How to combine a plot with an image

I have an external data file data which contains the position of stars of a galaxy simulations and it looks like this ...
3
votes
3answers
166 views

Collapsible Group of Control Objects

I did what I believe was a thorough search on this topic, but still ended up fruitless. Apologies if there is a trivial solution to this. Is there a way to group control objects together to form ...
3
votes
1answer
616 views

How to insert a plot into another overlay plot

I want to insert a plot into another overlay plot. Here is my code: ...
3
votes
2answers
163 views

Moving a locator based on the movement of another

My problem is: I want two Locators to simulate a vector in the following sense: The first Locator is the base and the second ...
3
votes
2answers
2k views

Creating a grid of plots [duplicate]

I'm really a noob on Mathematica. I would like to create a layout of multiple plots in Mathematica. I've a function that calculates the solution, over time, of a system of differential equations. ...
3
votes
2answers
471 views

Plotting the deformed shape of a rectangle

I want to plot a rectangle using graphics : rc = Graphics[{Blue, Rectangle[{0, 0}, {1, 1}]}]; and add a deformation function to it: $$\chi(\mathbf X)=X_1(1+...
3
votes
1answer
162 views

Use NotebookWrite with Graphics?

I am trying to use NotebookWrite to paste a plot into another notebook. The code looks something like: ...
3
votes
4answers
3k views

how to draw a moving point on a curve?

I almost remember an example that has a moving red point on a given curve, which will moving time and time again, with no controls... now, here is my question: given a curve by ...
3
votes
2answers
217 views

Uniform scaling of a Table of Graphics objects?

Row[Table[Graphics[Rectangle[{0, 0}, {2^k, 1}]], {k, 0, 5}]] yields However, I'd like uniform scaling of the rectangles, i.e., each rectangle should look twice ...
3
votes
2answers
130 views

Fixing text position in an animation

Following I have a simple animation with a variable displayed inside the plot. The significant digits of the variable changes as you run the animation which results in a smaller jitter on the text's ...
3
votes
2answers
255 views

Mathematica Interpolation or approximation

I have lists of points X and Y. {1212,1216,1217,1219...}, {1,2,3,4,5,6...} I combine ...
3
votes
1answer
120 views

Adding text on an .xyz file of an atom

I know it is possible to view .xyz files of coordinates in Mathematica. I tried to write some text on a specific atom using Text, but I was not successful. How can i do that? Thanks for the help in ...
3
votes
2answers
105 views

Difference Colored legends from main plot

I am using the below code to create legends but I don't know why the colors in legends for various plots are different of devoted to main color of plots From http://reference.wolfram.com/language/ref/...