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
2answers
111 views

How to pad Background size in Style calls

When highlighting text using Style and Background, as in ...
2
votes
1answer
104 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
160 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
85 views

ListContourPlot is blank

This is probably very simple. I want to do a simple ListContourPlot. ...
2
votes
3answers
116 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
193 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
205 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
2answers
186 views

Saving graphics in Adobe Illustrator .ai format

How do I save a ListLinePlot graphic as an Adobe Illustrator file (with extension .ai)?
2
votes
1answer
192 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
159 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
263 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
136 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
110 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
145 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
154 views

Change the behaviour of a LocatorPane

Normally, LocatorPane detects any single click as in the following example: ...
2
votes
2answers
136 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
546 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
1answer
439 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
2answers
331 views

Plotting Chebyshev's theta function $\vartheta(x)$

The function I would like to plot is defined as $\sum\limits_{p\leq x}\log p.$ The following gives me I think a plot of the points of interest, but the function is defined for all $x > 0$ and so ...
2
votes
1answer
397 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
398 views

Graphics legend: How do I split tables into parts?

Using Jens's code: ...
2
votes
1answer
122 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
1answer
119 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
2answers
76 views

Simple plot control

Absolute newbie question: Plot[2x-1,{x,-4,4},GridLines->{Range[-4,4],Range[-8,8]}] works about as expected, except that (a) I would like the tick ...
2
votes
2answers
118 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
127 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
2answers
117 views

Labeling points with numbers in a Graphics expression

Can I label points with numbers in my Graphics expression, as in this picture Here is my code. ...
2
votes
1answer
145 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
208 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
141 views

Discontinue, then continue x-axis of 2D Histogram

I have the pictured Histogram. It was generated by the following lines: ...
2
votes
2answers
133 views

Expand Graphics based on all elements

How might I force the following Graphics element to expand to contain the Inset text? ...
2
votes
1answer
183 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
190 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
406 views

Using graphics primitives to draw a cross as inset in graphics

I would like to draw a cross as an inset in a Graphics environment. I tried the following: ...
2
votes
1answer
572 views
2
votes
1answer
54 views

Specifying the style of edges in directed graphs [closed]

How do I specify the style of individual edges in a directed graph (in Mathematica version 9)? Consider maybe this ...
2
votes
2answers
93 views

Plotting boundary of piecewise function in ContourPlot

I am trying to do a ContourPlot of the following function: ...
2
votes
2answers
101 views

How would I rotate a table of Cuboids around the y axis?

Currently I can print out this using Graphics3d: Here's the code: ...
2
votes
2answers
116 views

Calculate pixel intensity in two regions

I am just beginning to learn about image processing. I would like to know 1) How to show an original image with a visible mask of an arbitrary shape? 2) how to calculate the pixel intensities in the ...
2
votes
1answer
63 views

Displaying a list in form of an upside down pyramid graphic

I was wondering how to display a list like this: list={{0,1,1,0},{1,0,1},{1,1},{0}} in form of an upside down pyramid, that is the first element of the list is ...
2
votes
1answer
87 views

ListPlot with background image?

I need repetitive plots like this below. I invented that I refuse to use pen and I will plot the points in Mathematica, then change opacity, then change contrast and voula get the points to the graph ...
2
votes
1answer
82 views

How can I adjust ContourPlot in Mathematica?

I have problem because of the max point and min point, when I have too high or low data point, it just make it white. Here is example of data ...
2
votes
2answers
93 views

Set the same color scale across multiple ListContourPlots?

This is probably straightforward - but how would I set the same color scale across multiple ListContourPlots? if I have values from 10 to 25 on one ListContourPlot and values from 40 to 100 on ...
2
votes
1answer
115 views

How to correctly map values onto an arrayplot

I want to understand why the order of the text is reversed from what it should be? If I compare the first and second results, I see that the {1,1}, {2,2},... diagonal is going down the wrong diagonal. ...
2
votes
2answers
77 views

LegendMarkerSize value equivalent to special character size in LegendMarkers

I am trying to find the equivalent LegendMarkerSize value to the size specified for special characters when using LegendMarkers. So far I found LegendMarkerSize 14 generates symbols close to 22 set ...
2
votes
2answers
114 views

Graphical solution of a a two-variable system containing an equation and an inequality

I'm currently studying atmospheric-gravity waves and their dispersion relations. I want to have look at values of $(x,y)$ that solve the following system : \begin{equation}\label{}(1) \left\{ ...
2
votes
3answers
169 views

Recover data points from RGBColor of known ColorScheme

In general I want to recover the z-values from an image of a DensityPlot. A simple example might just be ...
2
votes
1answer
147 views

Issue in displaying a rotated PolarPlot with Show

I can use PolarPlot to generate a plot; however, I would like to rotate the plot by 90 degrees and then output the result using Show. Here is the code ...
2
votes
1answer
221 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
387 views

How to combine two plots with the same y-axis

I have a data file which contains three columns of data. The first and the second column correspond to $x$ coordinates, while the third column to $y$ coordinate. Here is a small sample of the data ...