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

2
votes
1answer
105 views

Unexpected scaling of graphics when using Show

Here is my code: ...
2
votes
1answer
173 views

Copying each object in a plot separately as an image

I would like to copy a plot from Mathematica as an image, into a PowerPoint slide. This plot has two curves. When I try to do the (naïve) usual "copy graphics" and paste, I find the full plot (along ...
2
votes
2answers
850 views

How to set the ratio between the vertical and horizontal scales of plots?

The documentation says that when AspectRatio->Automatic is specified, Mathematica determines the ratio of height to width from the actual coordinate values ...
2
votes
2answers
475 views

Draw network graph and get the coordinates of each node

I would like to draw an undirected graph by specifying the nodes and the edges among them. This is currently done by, for example: ...
2
votes
1answer
100 views

Graphing the amount of time a function takes

I know I can find out the amount of time a function takes to run like this: In:= function1[100] //Timing Out:= {0.043334, Null} How can I graph this over a set ...
2
votes
1answer
539 views

How to convert an output to a graphic that can be selected like a plot?

EDIT: István Zachar informed me of the Rasterize[] command, which does exactly what I need. Danke! I have a self-built function that uses Grid[] to create a table that is more presentation-friendly ...
2
votes
1answer
277 views

Why are my FrameTicks not working on ArrayPlot?

For some reason the ticks don't work on this: ...
2
votes
1answer
592 views

How draw dynamic empty rectangle over a bitmap?

I am trying to make a cookie cutter that will extract a small square from a much larger bitmap with a click of the mouse. The LocatorPane appears to be a useful way ...
2
votes
2answers
1k views

Animation of Differential Equations from NDSolve with ParametricPlot3D and Evaluate

I have a system of differential equations (referred to as "s") and use NDSolve to obtain the solution. I substitute the interpolated functions for the original ...
2
votes
1answer
297 views

Hakim's Sphere in Mathematica?

Hakim El Hattab's Sphere, consists of only a handful of lines of Javascript, and would probably be even terser if written in Mathematica. How difficult would it be to "transcode" Mathematica to JS? ...
2
votes
2answers
120 views

How to pad Background size in Style calls

When highlighting text using Style and Background, as in ...
2
votes
1answer
119 views

Help me export high-resolution TIFF figure

I have generated a figure in MMA by ContourPlot3D. How can I export this figure in high-resolution TIFF format(say, 1200 dpi for lines, 300 dpi for halftone and ...
2
votes
1answer
58 views

How can I mark a point on a slider control?

I have a Slider control inside a Manipulate which spans some range of values, say from 0 to 10, like in: Manipulate[ Sin@x, {x, -2 Pi, 2 Pi} ] I would like ...
2
votes
3answers
183 views

Delete the white areas in GraphicsGrid

Let's see a simple example ...
2
votes
1answer
162 views

How can I make a map of Sierra Leone at the district level?

Hi I am trying to make a map of Sierra Leone and am running into trouble. SL has 4 provinces: Northern, Southern, Eastern, and Western, which are diced up into 14 districts as shown here: ...
2
votes
1answer
153 views

Plot: How set markers in plot in front of axes

I draw a plot using ListPlot. But I noticed that PlotMarkers are 'covered' by the axes; see example below: I was trying to ...
2
votes
1answer
237 views

How to highlight image edge with spline/bezier when mouse moved over?

It is known that EdgeDetect can find image edges in an image. Suppose the image edges consists of sets of lines. Can the detected edge line near the mouse pointer be highlighted as spline/bezier when ...
2
votes
1answer
137 views

ListContourPlot is blank

This is probably very simple. I want to do a simple ListContourPlot. ...
2
votes
3answers
175 views

Force change in aspect ratio of Inset image

I have an image that I want to place in the background of a plot and stretch it to cover the entire plot area. However, the aspect ratio of the image does not match the aspect ratio of the plot, and ...
2
votes
1answer
247 views

How can I plot a circular region and lines?

I am having difficulty plotting something along these lines in Mathematica. I will explain what is going on here. Basically, I am solving an interval equation $ax=b$, in the first example $a = [1, ...
2
votes
1answer
241 views

GUI of a Karnaugh Map

I intend to implement a three-variables Karnaugh map with the following code. There are two points I failed to figure out. How to remove the outer double-line border? How to change the toggling into ...
2
votes
1answer
265 views

Label x-axis of Plot with power of two values

I want to make a plot similar to LogLinearPlot, but with power of 2 ticks instead of 10 on x axis. ...
2
votes
2answers
190 views

Set PointSize to pixel size

I have a set of 1million 2D points and I would like to produce an image 200x200 pixels where each point will have the size of a pixel (no more). Additionally each point may repeats several times so I ...
2
votes
1answer
339 views

Finding intersection of 3D lines

I want to find the intersection of 3D line. I want to detect the 3D light source position by intersecting 3D lines. ...
2
votes
1answer
147 views

How to break graph to fill in the gap in pdf

I've printed my notebook into a pdf. There is a huge gap in the left page, due to the fact that the graph in the right page isn't divided to fill in the gap. Is there a way to fix it, preferably ...
2
votes
3answers
112 views

Make all the lines equally sharp [duplicate]

Graphics[{ Line[{{# - 1, -0.5}, {# - 1, 5.5}} & /@ Range[6]], Line[{{-0.5, # - 1}, {5.5, # - 1}} & /@ Range[6]] }] There are two kinds of lines in ...
2
votes
1answer
156 views

How to embed graphic-element-specific metadata within a Graphics object?

One of the most crucial requirements for rich, interactive scientific graphics is being able to "annotate" individual graphic elements (e.g. the data points of a scatterplot, the individual curves in ...
2
votes
1answer
159 views

How to keep front and back colors of Polygon in Graphics3D same all the time [duplicate]

I want the same face color for a 3D Polygon when viewed from front or back or from any angle. i.e. I want the color not changed under any conditions. Front and ...
2
votes
1answer
173 views

Change the behaviour of a LocatorPane

Normally, LocatorPane detects any single click as in the following example: ...
2
votes
2answers
141 views

Graph two interpolations together

I have created two functions, inter1=Interpolation[points1] and inter2=Interpolation[points2]. This creates two functions, I ...
2
votes
1answer
655 views

Distance between 3D curves

I would like to determine the distance bewteen two representations of the Lorenz Attractor. I have two 3D representations for different initial conditions and I want to calculate the distance between ...
2
votes
2answers
3k views

How can I change the position of my plot legends?

As the title indicates, I want to change the current position of the legends in a combined plot. The Mathematica code I used is ...
2
votes
1answer
569 views

Changing default range for x- and y-axis in ListPlot3D

How do I change the default values for the x- and y- axis in this example without altering the z-axis values? For instance, I want the x-axis to follow a range based on "x= 0.01 i+3" (not just i) , ...
2
votes
1answer
567 views

Use output from Plot3D as an object in Graphics3D that I can transform

I'm trying to draw up an optical system where I can show an example of wavefront error on an exit pupil. It would be great if I could take the results of a 3D function from Plot3D and use it as a ...
2
votes
1answer
454 views

Graphics legend: How do I split tables into parts?

Using Jens's code: ...
2
votes
2answers
93 views

How to create a bar graph that evolves in time to monitor a simulation

I imagine a random process that proceeds as follows: Suppose there are $n$ dice. ($n$ is pretty big). They exist in an arena. They are all bouncing around. They start in a random configuration. If ...
2
votes
1answer
172 views

Using codes to replicate drawing tools in Mathematica

This might seem very obvious but I'm on the verge of losing all the annotations I've made on a graph because I can't figure a way to save it after using the drawing tool to add a few extras to the ...
2
votes
2answers
73 views

Problem with the BarChart3D function

I have a list of values {x,y,z} and I would like to create a 3D bar chart with axis x,y,z . ...
2
votes
1answer
79 views

Contourplot gives inaccurate ellipses

I'm trying to draw a family of ellipses with pre-defined foci as follows: ...
2
votes
1answer
152 views

How to make hollow octahedron 3-compound?

I would like to remove facets from a graphic - like on the picture below. Link I tried to combine these two graphics: ...
2
votes
2answers
131 views

How can I visualize an array of very small vectors spaced on very large grid? [duplicate]

I have data in the form points = {{1, 1, 1}, {1, 1, 2}, ...} vectors = {{2, 2, 5}, {2, 1, 7}, ...} Can somebody help to edit this data so I can ListVectorPlot a ...
2
votes
1answer
178 views

How to set range of values on BarLegend and Manipulate Polygons color filling using BarLegend

I have a simple graphics which display a polygon and a bar legend. I am having difficulties defining a range of values for my bar legend. What I am looking to get is 4 values: 10^-10, 10^-6, 10^-3, ...
2
votes
1answer
211 views

Cropping a non-cubic lattice unit cell

I would like to crop the hexagonal close-packed system as a hexagon and not as a cube. I would like to use the following volumetricPlot already given on this ...
2
votes
1answer
260 views

Perspective transformation of a 2d streamplot

I have a two-dimensional streamline plot from a fluid dynamics simulation. I am wondering: is it possible to somehow allow Mathematica to treat the streamline plot as a plane in three-dimensional ...
2
votes
1answer
166 views

Discontinue, then continue x-axis of 2D Histogram

I have the pictured Histogram. It was generated by the following lines: ...
2
votes
1answer
220 views

ListPlot - plotting values with different range

I have three tables: L, S and U. In first table I have values from range (0,1), in second ...
2
votes
1answer
265 views

Why is this expression being held, and how can I evaluate it?

I can't figure out why an expression isn't evaluating, even though there's no Hold* in its FullForm: ...
2
votes
1answer
218 views

How can I specify the exact colors two Polygons in plots combined with Show?

I made two Polygons with different colors. Their names are p1 and p2. ...
2
votes
1answer
779 views