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

4
votes
1answer
107 views

AspectRatio option works unpredictably?

Let us examine the agreement between specified value for the AspectRatio option and the actual aspect ratio of generated plot. For this purpose I define a function ...
4
votes
2answers
296 views

How to plot an implicit value funtion

Previous question has been solved (Gap in a continuous plot). Here is a new related question. ...
4
votes
4answers
283 views

Conveying density of 5-smooth (Hamming) numbers

A number is 5-smooth if its only prime factors are 2, 3 or 5. Example: 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, … Interesting thing is that as they become larger ...
4
votes
1answer
723 views

How to draw a Circle in a graph with Log Y Scale

I've programmed drawing tools for graph images and am experiencing a problem with the coordinates of an Ellipse on a graph with a Log Y axis. It's quite easy to work out the Y Axis coordinates for ...
4
votes
2answers
332 views

how to Export raster data as a tiff unmolested

I feel certain there is a simple answere here.. how do I export image data to a tiff without any scaling? I want to read back in the exact data. ...
4
votes
1answer
195 views

Precision of rendered Rectangles in stiff-scale graphics

The attchd graphics called chromograms represent a set of discrete-state, continuous-time - ie, discrete-event signals, generated with Mathematica 9 on OSX with a Cinema display. • Top 2 rows are ...
4
votes
2answers
604 views

How to add fill color to a 2D Graphics object?

Problem / background: consider the following code snippet. ...
3
votes
1answer
300 views

BarChart that lines up with dates in DateListPlot

I am trying to create a chart similar to the view offered by TradingChart, but with custom data not relating to finance. ...
3
votes
1answer
206 views

Ugly plots when printing notebook to pdf

One image is worth one thousand words, so: Question: At what options should I be looking, so that what I see in my notebook is what I get in my printed pdf ? Here is the code I'm using: ...
3
votes
1answer
265 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 ...
3
votes
1answer
334 views

rasterListContourPlot With PlotLegends in Mathematica 9

Jens Nöckel has write functions about (List) Contour Plots with rasterized shading in Mathematica: http://pages.uoregon.edu/noeckel/computernotes/Mathematica/rasterContourPlot.html It works well. ...
3
votes
2answers
436 views

How do I represent a system dynamics feedback loop?

In System Dynamics, if I want represent the relationship between Speed and Distances, I create a Flow (Speed) and a Stock (Distance) as you can see in this Insight Maker Sample . Heres an Image of how ...
3
votes
2answers
413 views

Extracting a single layer from a SHP file

I have an ESRI ShapeFile (SHP) that I've loaded. It has a number of layers which I can see the names of by using: Import["file.shp", "LayerNames"] I get ...
3
votes
2answers
772 views

X label in GraphicsColumn is cut off

I'm trying to use GraphicsColumn to plot two curves with very different ranges. for example, ...
3
votes
1answer
250 views

LocatorPane, Dynamic and deleting locators

Compare the following two code snippets : Version 1 ...
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
2answers
544 views

Generate nonoverlapping random circles [duplicate]

I want to distribute n circles unformly in an area(e.g. free plannar space). The circles could touch each other but cannot overlap. ...
2
votes
3answers
326 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
152 views

ListPlot with conditions

I have a data file containing the position of about $10^5$ stars of a spiral galaxy. Here is the plot and this is the corresponding code ...
2
votes
1answer
274 views

Generate a set of 3D coordinates subject to constraints

Generating a set of random 3D coordinates is ok, e.g. ...
2
votes
2answers
132 views

Under OS X, is there a way to view graphics output when running in the command line?

Being a long time unix shell person, I prefer Mathematica's command line interface, over the notebook. (command history, etc...) It just learned that on OS X, the cli is available as MathKernel. ...
2
votes
1answer
222 views

Render dynamic Graphics objects static

As was discussed in the comments of another question (MathLink Graphical Output (Plots) to File), Graphcis objects produced by commands such as ...
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
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 ...
2
votes
2answers
920 views

Making a movie with specific frame-rate out of ListPlot outputs? [duplicate]

Possible Duplicate: Is it possible to prerender animation in Wolfram Mathematica? Does Mathematica support variable frame rate for any video format, in analogue of GIF-style “DisplayDurations”? ...
1
vote
1answer
263 views

Detecting a nonlinear edge in a 2D point pattern

Following an earlier post here, I have generated a point pattern on the unit square $[0,1]\otimes[0,1]$, which is described by a piecewise constant intensity function constructed so that (in ...
1
vote
1answer
212 views

Using Manipulate with a control variable for selective recalculation

I'm trying to adapt Nasser's method for using a control variable inside Manipulate to selectively choose what part of the code should be recalculated depending on the controls changed. I've also read ...
1
vote
2answers
120 views

ListPlot : range from $0$

I want to plot values of a table for example: table = {0.456, 0.7899, 1.3456, 9.8908} But I want to Plot points (x,y) like: ...
1
vote
1answer
1k views

Problem with transparency when I export an eps file

I have the following simple Mathematica code: ...
0
votes
1answer
283 views

A problem on generating convex hull

For example, I typed the following: ...
-1
votes
1answer
1k views

How to set image DPI? [duplicate]

For publications usually images in TIFF format are required in high resolutions. Where can I change settings for images that are being saved (using RMB click "Save Graphic As..."), so I don't need to ...
16
votes
4answers
672 views

How do you turn off the Dashed graphics directive? [duplicate]

I'm looking at Graphics Directives but can't figure out a way to turn off the Dashed graphics directive. For example, given ...
15
votes
2answers
297 views

Upon PDF export, edgeless rectangles do not tile perfectly, and corners may be cut. Is this a bug?

Note: this problem is no longer present in version 10. Exporting the following as a PDF file ...
12
votes
1answer
249 views

Effects of single-point and multi-point calls of Point on plot range

Several Graphics primitives are listable. For instance, Point accepts lists of coordinates so that multiple calls to Point are ...
11
votes
2answers
265 views

can a ColorFunction have side effects?

Can anyone explain this (to me) odd behavior. If I run this code once (fresh kernel) it works as intended. ...
9
votes
2answers
507 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 ...
8
votes
3answers
461 views

TreePlot with centered vertexes

I want to draw a tree plot for Euler totient function for this question like the following: I generate the EulerPhi for first 20 numbers into a list: ...
7
votes
1answer
151 views

What should I call the messages that appear when the mouse moves over failed graphics output?

I attempted to evaluate the following Plot[x^2, {x, 1, 2}, PlotStyle -> {RGBColor[a]}] which, of course, failed. After the failure, putting my mouse over the ...
7
votes
2answers
284 views

How to Rasterize in “Printout” style

I am trying to ascertain how large a justified text block will be when printed by rasterizing it in the "Printout" style environment. However, ...
7
votes
2answers
348 views

Dealing with numbers too large for machine precision in Graphics

Graphics only supports machine precision numbers (i.e. number that can be converted to machine precision). Take for example ...
6
votes
4answers
416 views

How to color the same contour line with different colors according y value

Here is an example: ContourPlot[Sin[y - x^2] == 0, {x, -1, 1}, {y, -10, 10}] Because all these separate lines come from the same contour line ...
6
votes
2answers
219 views

How to get rid of the blank areas around alphabetical images?

I attempt to test the mean graylevels of the alphabets "W" and "Z". I used the following code to create the images of them. ...
6
votes
1answer
298 views

Coloring a honeycomb structure

I am trying to generate a honeycomb structure. With the help of this MMA.SE question & this website, I got ...
6
votes
1answer
238 views

Does it make sense to ask for the color of a Graphics3D “voxel”?

Say I generate some Graphics3D object, e.g.: Graphics3D[{Red, Sphere[{0, 0, 0}, 1], Blue, Sphere[{1, 0, 0}, 1]}] Does it make sense to ask for the color of a ...
6
votes
2answers
2k views

Deformed style when exporting eps files

I want to export a plot into an eps file. Below I present a sample plot code in order to demonstrate the two issues that appear. (1). LabelStyle: When I use ...
6
votes
1answer
152 views

How can I restore context menu functionality to a Manipulate that contains Locators?

Before adding a Locator to a Manipulate, I can easily print or export the result using a context menu: But after adding a ...
6
votes
3answers
574 views

Getting all the countries' flags and then using them as chart labels?

What's the code to list all the world's flags? CountryData["G8", "Flag"] works to get those particular flags, but what about all the world's flags? ...
6
votes
2answers
440 views

How do I transform a rasterized graphic's coordinates back to its original ListPlot data coordinates?

From this question I successfully made an elliptical fit for my data. However, when I try and collect the datapoints within the ellipse via this question the coordinates of my ellipse correspond to an ...
6
votes
2answers
1k views

Animating a rotating disk

I have a system with 3 degrees of freedom that I want to know if it is possible to visualise with Mathematica in the two-dimensional $X-Y$ plane. I have a plane ...
5
votes
0answers
329 views

WindowSize error message when saving Graphics object as PNG [duplicate]

When I try to save a Graphics object using the menu File ▶ Save Selection As... or via right click and Save Graphic As... the Messages window pops up with the ...