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

0
votes
1answer
343 views

How can I build a GraphicsGrid of fixed size that rearranges the empty plots?

OK, let's make one final attempt; they say the third time is the lucky one! Following @rm-rf 's suggestions, I will try to be as clear as I can. My Mathematica code reads and plots simultaneously ...
3
votes
1answer
496 views

Exporting PDF file - incorrect graphic [closed]

I export graphics to PDF using: Export["/path/figure.pdf", plotname] It gives me more than enough quality for PDFLatex. But somehow, some exported plots have ...
2
votes
2answers
586 views

How can I build a GraphicsGrid of arbitrary size?

This is actually a very simple scenario, in order to make simpler this question Part I. Consider the following piece of Mathematica code ...
4
votes
3answers
147 views

Style changes between controls and graphics

In the following Manipulate, the style (font?) of the a changes between when it is a control label and when it is a label in the graphics. Is there a way to make ...
0
votes
1answer
99 views

How do I save the last graphical output of Animate so as to make it the background for the next Animate?

I am making an instructional program in which a random number appears and moves across and down into the appropriate bin, landing on top of the existing stack. Then another number appears, repeating ...
23
votes
3answers
600 views

How does one adjust ColorFunction quality independently of surface quality?

I have a function $f:\mathbb{C}\rightarrow\mathbb{C}$ which I would like to visualize by by plotting $|f|$ with Plot3D using $\operatorname{Arg}f$ as the ...
4
votes
1answer
704 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
159 views

Restrict MousePosition to specific Graphics object

I have a problem using MousePosition. I want to restrict the value returned by MousePosition to a specific Graphics object. ...
2
votes
3answers
2k views

How to color a contour plot over a subset of colors displayed in the bar legend

This seems real easy but I can't find the answer. I have a few contour plots that I am combining and want to use only one bar legend that captures all the values. Given that I know the range of ...
1
vote
1answer
174 views

Behaviour of Locator

I seek advice regarding the constrained behaviour of the Locator: appears confined to square {0,0}->{1,1}. When I change starting position it snaps to this constrained region. The code I am referring ...
2
votes
1answer
130 views

NotebookWrite Multiple Selected Objects

Lets say I select shapes in a Graphics diagram in the following picture. Generated from the following set of code: ...
3
votes
2answers
1k 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 ...
1
vote
3answers
2k views

How to fix vertical axis scaling across multiple plots?

I have a collection of plots, all of which have the same horizontal-axis range, but different vertical-axis ranges. These ranges differ not only in the absolute locations of their maxima (...
5
votes
1answer
123 views

How to make endpoints flush with fill in ListLinePlot?

If one plots a filled line plot such as, for example, the one produced by ...
11
votes
3answers
471 views

How to make Excel-like data bars?

I would like to make a grid where each cell background is partially filled according to the numerical value being represented (on a scale from 0 to 1). Similar functionality to the one requested in ...
0
votes
0answers
154 views

How to add labels to a graph [duplicate]

This should be an easy question but since few examples are given for ShowLegend and I am a new user, I got stuck after many attempts. I plot three graphs which are ...
1
vote
3answers
992 views

Phase portraits and StreamPlot

I typed StreamPlot[{y, x-x^3-0.3y+0.5Cos[1.25t]}, {x, -2.5, 2.5}, {y, -2.5, 2.5}] but all I got was a blank plot. What did I do wrong and can I fix it?
8
votes
1answer
313 views

How to compile Heike's winding number function?

Heike gave the following function for winding number: ...
5
votes
2answers
1k views

Place plot markers in front of error bars with ErrorListPlot

I'm making an ErrorListPlot where the error bars are a different color then the markers and it works, however, the error bars are drawn in front of the markers and ...
3
votes
1answer
264 views

NetLink Exporting Images doesn't work (Unknown string escape)

Exporting Image files (intermittently) doesn't work: I get messages back indicating the error is to do with escaping characters: ...
8
votes
2answers
410 views

Colorize and the Four-Color Theorem

We can write: MorphologicalComponents[image] // Colorize To assign a random set of colors to each component in some image. The example used for reference by ...
1
vote
2answers
311 views

Why is Text in an Image cut off?

I want to create a long, skinny Image containing only text. This makes a square image of the default size. ...
2
votes
2answers
151 views

Graph two interpolations together

I have created two functions, inter1=Interpolation[points1] and inter2=Interpolation[points2]. This creates two functions, I ...
2
votes
0answers
182 views

How can I fix my keyboard-free panning?

I'm trying to make a graphics display on a touchscreen device in Mathematica. This means that there will not be a keyboard available for functions such as Panning and Zooming. Because of this, I have ...
1
vote
0answers
75 views

Efficiently generating 3D histograms for large sets 2D coordinates [duplicate]

I'm attempting to generate a 3D histogram for a large set of two-dimensional coordinates ($\approx 10^7$). the x- and y-components of each coordinate are rounded to the nearest integer, and these ...
9
votes
3answers
394 views

PlotMarkers don't change colour for different lines

I have a set of data and several function operating on the same data, that I wish to plot together in a ListPlot. I need different ...
1
vote
2answers
331 views

Clear labelling gray-scale plots

I am plotting a number of functions (at least 4 in one plot) with a legend. Needless to say, it is important that it is clear from the legend which line belongs to which function. I tried to play ...
6
votes
2answers
324 views

Add arrows over matrix

How can I plot this graph g1 = Table[x[i, j], {i, 5}, {j, 5}] // Grid; Rasterize@g1 I added these arrows by Ctrl+D's graphics tool. This way maybe hard ...
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. ...
2
votes
1answer
965 views

Adding an image background to a graph that uses vertexposition

Hello Mathematica stackexchange community! I need your help on a research project. I'm looking to create a graph g with vertices in specifies places and then use an image I have as the background of ...
3
votes
1answer
298 views

Using MatrixPlot, how can I dynamically zoom in and out with my mouse? [duplicate]

I have a MatrixPlot output which I would like to zoom around in, drawing boxes that define a zoom region with my mouse. These things are all fairly standard in Labview... surely Mathematica must have ...
18
votes
4answers
2k views
9
votes
1answer
341 views

PlotMarkers doesn't inherit PlotStyle when first argument to Graphics isn't a list

Could somebody explain, why Circle does not inherit the PlotStyle of the plot when used as ...
6
votes
1answer
531 views

Creating a highly customized BarChart

I am trying to create a BarChart visualization for multi-step data filtering. Think of a traditional sales funnel: many leads, fewer prospects, few customers, very few return customers. The only ...
4
votes
1answer
510 views

ListPlot coloring by density of points

I have a set of points on a circumference: points = Map[Normalize, RandomReal[{-1, 1}, {3000, 2}]] And I want to plot them and color the plot according to the ...
8
votes
1answer
1k views

Exporting a sequence of graphs as video efficiently

I have a sequence of graphs that are being created within Mathematica which I'm exporting to create an animated plot of the graph, as follows. ...
4
votes
1answer
716 views

How do I draw a credible velocity vs. time graph using Locators?

This is partly a math question, partly a Mathematica question. For educational purposes, I'm making a simple demonstration to create a velocity over time graph from six locators. On the basis of ...
7
votes
1answer
411 views

Crash when displaying / rasterizing graphics with textures at high resolutions

CAUTION/Disclaimer: execution of some of the code below can result in a complete crash of Mathematica or even your system. Save all your work and do not try in a productive situation. For a graphical ...
11
votes
3answers
1k views

How can I visualize 6 square matrices as a cube?

I have six square matrices of the same dimensions in a list, for example: ...
1
vote
1answer
497 views

Measuring the area of non analytical regions in a plot [duplicate]

As the title says, I want to measure the area of different closed regions in a plot. Let me be more specific by giving a characteristic example. In the following figure, we observe that inside the ...
3
votes
2answers
100 views

Manipulation of Automatic settings in a given case

Often I use the Automatic option to specify plot styles, plot ranges, image sizes, etc. I'd like to be able to apply some modifications to these automatically ...
21
votes
3answers
5k views

How to export large graphics?

I'm using Raster to create large graphics (1000 by 1666), which I want to Export as a JPEG or TIFF in a resolution that can be printed in a large size, 3' by 5'. ...
1
vote
1answer
161 views

Appropriate application of plotstyle directives

I am attempting to style a Plot in which all of the lines are Thick and I have selected the colors manually: ...
3
votes
2answers
443 views

FrameStyle in Inset with Framed expression

I am creating some plots that use FrameStyle->AbsoluteThickness@5 and PlotStyle->AbsoluteThickness@0.5. In my plots' ...
6
votes
3answers
289 views

Displaying a locator that moves smoothly and updates some dynamic variables

I want to select a point on a graph and display a function of the coordinates value. Asking here a related question I learned to use Setting. Consider the example, where I display the coordinate ...
7
votes
1answer
1k views

How can I get better control over StreamPlot?

I'm having some difficulties with the command StreamPlot in Mathematica 7.0. Here's the basic plots I'm doing : ...
12
votes
1answer
702 views

PieChart with radial coloring/color function

I am trying to visually compare multiple functions that depend on a single argument running from $0$ to $1$. They describe a radial property and so I thought it would be nice to use a kind of ...
6
votes
2answers
520 views

Exporting twice crashes Mathematica on Ubuntu 12.04 with Unity

I'm trying to work out if it's a Mathematica, Ubuntu or setup specific bug. I've asked some colleagues to try it on other Linuxes. This also crashes on OS X with Mathematica 8.0 and fails with 9.0, ...