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

1
vote
1answer
151 views

Remove overlapping red and green color

How to remove overlapping red and green color regions, leaving only red ones?
6
votes
3answers
527 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
468 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
126 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
284 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
126 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
317 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
570 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
623 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
142 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
143 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
153 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
358 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
118 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
272 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
586 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
33 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
367 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
175 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
471 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
91 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
121 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
1k views

Finding the best way to visualize rather complicated data

I have the following data ...
5
votes
1answer
174 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
252 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 ...
2
votes
1answer
140 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 ...
9
votes
2answers
495 views

How to position text labels automatically to not overlap other graphics elements?

I was plotting reciprocal frame projection using Locators for a point to be expressed in terms of both the original basis (also specified with ...
20
votes
5answers
478 views

Compiling ColorFunction for faster complex phase-amplitude plots

I have gotten into the habit of plotting complex-valued functions on a plane using a color-function along the lines of ...
0
votes
0answers
35 views

Obtain the coordinates of a point by clicking on it [duplicate]

Is it possible to show the coordinates of a point in a plot by clicking on it ? For example you click on one point on the plot below and you get the point's coordinates.
2
votes
1answer
141 views

Fraction Alignment in Plot Export to JPG [duplicate]

I've produced some plots that have fractional tick labels on the horizontal axis and they look fine. ...
10
votes
2answers
162 views

Can I define new graphics directives?

Is it possible to define new graphics directives? For example, suppose I want to be able to use the following code: ...
14
votes
4answers
466 views

Can TreeForm be displayed “sideways”?

One recurrent problem I'm having with displays generated with TreeForm is that the expressions to be so displayed often at least one level with many (> 20) nodes ...
23
votes
5answers
561 views

How to examine the structure of Graphics objects

One difficulty I'm encountering in studying the structure of Graphics objects is that I have not yet found a way to print or display such structures that are ...
9
votes
1answer
186 views

Structure of Graphics (esp. those produced by Plot, ListPlot, etc.)

I'm looking for a description of the structure of Graphics objects, aimed at the advanced Mathematica programmer. The motivation for this question is the ...
0
votes
1answer
286 views

List plot joined with stair steps instead of diagonal lines

What's a simple way to plot a list of points so that they're joined with stair steps instead of straight lines between the points? I'd imagine something like... ...
10
votes
1answer
548 views

Roads network visualization by thickness and color intensity by population from GIS files

We can have road networks of the countries in GIS shape file.For exmple from here. Normally traffic flows are proportionate to populations of the cities. I wonder how we can have the same in ...
2
votes
0answers
118 views

I am not able to plot legends in list density plot using c program. Getting blank legend

I have tried to load the "PlotLegends'" package. Here is my code, ...
4
votes
2answers
317 views

How to exclude some points to make them more evenly distributed in a figure

If there are some points in a figure, how can I exclude some points to make them more evenly in the figure? 'Evenly' here can be defined as the number of points in each $0.01*0.01$ box is at most one. ...
4
votes
0answers
149 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: ...
12
votes
4answers
317 views

Prevent graphics render inside held expression

Assuming each odd line is input I would like the even lines to be the output of the following lines. In the above the Graphics are inside ...
7
votes
2answers
2k views

Labeling points of intersection between plots

There are several answers where Mathematica used mesh points to show graphically where curve intersections exist. For example: Marking points of intersection between two curves or Is there a better ...
7
votes
3answers
321 views

Poor quality Rasterize output when Background -> None

I am attempting to generate partially transparent images for PNG Export, but seem to run to the following issue. If I Rasterize ...
11
votes
3answers
447 views

WaveletScalogram in polar coordinates

For given dataset data = Re[Zeta[1/2 + I Range[0, 100, 0.01]]]; It is nice that Mathematica can plot data in both Cartesian and Polar coordinates. ...
2
votes
1answer
72 views

Strange response with dynamic texture and MousePosition

I built a cubic, then use MousePosition together with GUIScreenShot to take a floating region with fixed size (200*200) on the ...
5
votes
3answers
265 views

How to disable differential styles/markers/etc. for multiple entities?

For functions that can produce multiple "style-able" entities, Mathematica by default will give each such entity a different style. Similar conventions apply to other features, either by default, or ...
4
votes
2answers
123 views
26
votes
2answers
380 views

Chart illustrating options that affect Graphics/Graphics3D objects

In Mathematica there is a seemingly never-ending list of parameters that affect the appearance of Graphics and Graphics3D ...
1
vote
1answer
116 views

Text with specified FontSize looks smaller than expected

The simplest way to see what the post's title is trying to convey is to evaluate: ...