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

5
votes
1answer
174 views

transparency in image used for texture?

Is there a way to set a transparancy channel in a raster image used for a texture in 3d graphics? this creates a raster image with a transparency channel: ...
0
votes
0answers
57 views

Set maximum streamline length in VectorPlot for implicitly seeded streamlines

I have written a function that is meant to illustrate the solution of a DE: ...
1
vote
1answer
82 views

ListPlot with redundant labels for tick marks

Is it possible to have two sets of labels for the $x$-axis tick marks using ListPlot? For example, could we have tick marks labels: {1,2,3,4,...}, and then right ...
1
vote
1answer
238 views

Cubic Splines Functions

I have this set of three data points and want the natural cubic spline functions for them: dat = {{-.0247500, .5}, {.3349375, -.25}, {1.101000, 0}}; I tried: ...
0
votes
1answer
76 views

Combining an imported PDB file with a set of Graphics3D objects

Imagine we import a PDB file like so (using the example from ref/format/PDB in the help directory): ...
5
votes
1answer
288 views

How to draw this kind of plot?

Apologies if the question is too basic; I've searched the manual and the web but couldn't find a solution. I would like to present some data on a discrete plot. The data is divided into $K$ series or ...
7
votes
2answers
476 views

How to draw line connecting points on circle

Consider the list {1,2,3,4,3,4,2,1}. I want to label these points on circle the way they appear on list(clockwise, counter clock wise doesn't matter). After that I want to connect same points by ...
3
votes
2answers
75 views

Cell copy results in jaggy, aliased output

When I copy a cells by selecting them from the collapse bars on the right, then using the context menu option "Copy", the pasted image of plots is not anti-aliased and in general the text seems to ...
1
vote
1answer
137 views

Create Slider to start/stop/move Point

I want to be able to start, stop, and move the dynamically moving point simultaneously in both animations. The "PlayPauseButton" in the animations only controls the given animation. Indeed, I want ...
2
votes
1answer
177 views

GraphPlot labels overlapping

If I plot the following graph with an EdgeRenderingFunction, the position of both the labels are at dead center, and with a large graph I have the labels completely ...
6
votes
1answer
259 views

How can I scale a plot in vector graphic or PDF form?

I am not at all a computer graphics expert, but it seems that portable document format (PDF) files have a "native size," even though they may (and usually do!) contain vector graphics that can be ...
1
vote
1answer
649 views

Animate curve parametric plot on a surface

I have a surface s = Plot3D[{x,y,F[x,y]},{x,-1,1},{y,-1,1}] with $F$ predefined, and a curve ...
0
votes
0answers
163 views

Camera Simulator

I am developping a perspective camera simulator. For the moment, I am considering only the projection of a quadrics form that gives us a conic. For testing my simulator, I use povray an image ...
4
votes
2answers
152 views

Grid ItemSize is smaller than expected

If I execute MatrixPlot@IdentityMatrix@100, the result is a good size. However, if I evaluate ...
2
votes
1answer
198 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: ...
1
vote
1answer
127 views

Plot3D missing a zone

I am trying to plot a simple graph using Plot3D: ...
0
votes
2answers
78 views

Display Part Of or Summarize Other Notebooks

How might I display parts of(or basically summarizing) one Notebook from parts of several other Notebooks? This isn't a strict question question but more of a general/wiki question of how to organize ...
2
votes
3answers
263 views

How Can I superpose an image and a graphics?

I want to superpose an image with a graphics in order to evaluate their alignment. I am writting this exemple of code. ...
5
votes
0answers
107 views

Texture[] not working properly with Image AlphaChannel

I recently encountered a problem when combining multiple texture layers in an graphics object when the texture comes from an image with alpha channel. Apparently the alpha channel of the image passed ...
0
votes
1answer
114 views

Customizing AxesStyle->Arrowheads

How do I call AxesStyle->Arrowheads[ ] in order to control whether or not an arrow appears on each of the four ends of the axes in a ...
3
votes
1answer
105 views

Adding and summing overlapping Airy (or Gaussian) disks on a plane

In a previous question of mine, I asked how one might draw an Airy disk on a plane: Generating an Airy disk on a plane, and recieved some impressive answers from the users Timothy Wofford and ...
2
votes
1answer
112 views

Copying each object in a plot 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 ...
0
votes
0answers
34 views

How do I plot cities on a Map? [duplicate]

Right now, I have the 20 cities with the most population in the world, given by the lines of code ...
1
vote
1answer
144 views

Remove overlapping red and green color

How to remove overlapping red and green color regions, leaving only red ones?
6
votes
3answers
460 views

Hovering mouse cursor over a plot to display a “corresponding” point in another plot

(Apologies for not having gotten around to responding to and accepting answers on my other recent questions—as a meticulous and thorough type, I'd like to take my time to fully comprehend and ...
3
votes
2answers
421 views

Generating an Airy disk on a plane

I wish to generate a surface intensity plot of an Airy disk (or perhaps a two-dimensional Gaussian approximation to an Airy disk) on an (x, y)-plane at a specified coordinate. The hope is to have ...
3
votes
3answers
124 views

A one-liner to place some number of Graphics3D polytopes on a plane and to randomly assign colorations

I'm looking for a nice one- or two-liner to randomly place some number, $N$, of Graphics3D polytopes on a plane with dimensions $X \times Y$, and to specify that $k ...
6
votes
1answer
241 views

In version 9 PlotLegends, how can I remove the strange edges that appear around LegendMarkers?

I'm running Mathematica version 9. I am using ListPlot to plot two sets of data. For each data set, I am using different ...
6
votes
1answer
123 views

Fixing Spline curves so as to not overlap with themselves - (Diagrams)

Statement of the problem: Conceptually, what I'm trying to achieve is pretty simple. I have some code that generates a set of diagrams from a list of sets of points using BSplineCurve. Certain ...
1
vote
1answer
313 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 ...
5
votes
4answers
562 views

How can I create an image like this

I'm trying to get an algorithm that generates a picture like this So far I've tried a little something with the help of the knowledge center, getting a graphics grid of squares already. But what ...
6
votes
2answers
501 views

Too much whitespace in a GraphicsGrid containing Legended Plots

Where is all the vertical whitespace coming from, and how do I get rid of it? ...
2
votes
1answer
135 views

Manipulate Locator warping (snap to cursor)

I'm looking to have a Manipulator Locator that moves in discrete steps and requies the user to click on/near the locator position.. consider these two examples: ...
2
votes
2answers
141 views

How to increase the size of the dot produced by OverDot[]

As the title says, I want to find a way to increase the size of the dot produced by OverDot[]. Here is a simple code ...
3
votes
1answer
140 views

Plot Ticks disappear when combining Plot with Graphics

I'm attempting a simple Plot that I want to add asymptote markers to: ...
6
votes
1answer
338 views

Hatched bars and bar-specific background in BarChart

I would like to diagonally hatch the bars in BarChart and to have three different background colors for the different bars, like this: Any ideas how to ...
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 ...
1
vote
1answer
109 views

Can Epilog be used with ParametricPlot3D

This command: ParametricPlot3D[{Cos[t], Sin[t], t}, {t, 0, 2 \[Pi]}, Epilog -> {Arrow[{{0, 0, 0}, {Cos[\[Pi]], Sin[\[Pi]], \[Pi]}}]}] Produces the ...
0
votes
1answer
245 views

How can I combine several 2D-plots to one big 3D plot?

So I've been able to make a list given by list = Table[{xValues, f[xValues, t (*fixed*)]}, {xValues, xmin, xmax}] For example: ...
5
votes
4answers
578 views

How to draw an infinitely long line that automatically scales with the plot?

I'm trying to plot a function inside a Manipulate and draw a vertical line at some $x$ position. The scale of the plot can vary a lot depending on the ...
0
votes
0answers
32 views

Use of JoinedCurve with list only [duplicate]

When I Import an EPS file, bezier curves are converted into something like this: ...
9
votes
4answers
354 views

How to bend a logarithmic number line into a circle

One way to plot a sequence of numbers on a logarithmic number line is this: ...
4
votes
1answer
167 views

How can I stack plots so that they are aligned nicely? [duplicate]

Suppose that I have two plots (e.g., Plot, ListPlot, etc) that cover two regions of space. I would like to display them ...
10
votes
3answers
451 views

How to use legends from PlotLegends in LevelScheme?

I've been attempting to find efficient ways to generate graphics with legends for export, and have been working with both LevelScheme and the new (to v9) ...
2
votes
0answers
85 views

How do I incorporate metadata using Export?

I have Export["file.png",codeThatMakesAGraphicsObject[],"PNG"]; and want to embed some specific metadata information. Is there a simple way to do that? Note ...
3
votes
1answer
90 views

Make Entire Area of New Graphic Editable

Create a new graphic via the menu bar: Graphics -> New Graphic. The FullForm expression for this graphic is: ...
1
vote
1answer
119 views

Problem with GlobalClusteringCoefficient

I have a simple problem, I would like to measure the global clustering coefficient for a random graph. Here is my code: ...
13
votes
7answers
996 views

Finding the best way to visualize rather complicated data

I have the following data ...
5
votes
1answer
156 views

How to speed up multi-curve plotting?

The following example is a very simplified version of the problem I'm working with, though I hope it still captures the essentials. First, the definitions: ...
8
votes
2answers
242 views

Labeling a three-dimensional plot

As the title says, I want to add some text in a three-dimensional plot, thus labeling specific parts of it. Here is the corresponding Mathematica code ...