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

3
votes
3answers
145 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 ...
3
votes
1answer
66 views

Button ImageSize x-dimension ignored

How can a small square button be created with ImageSize -> {20,20}? The x-dimension won't go below about 70. (Using version 9.0.1 on OS X.) ...
3
votes
1answer
868 views

Adjacency List representation of a graph

I am looking to draw a graph knowing a simple adjacency representation of the graph like: A = {{1, 3}, {2, 3}, {3, 4, 5}, {4, 5}, {5}} Where ...
3
votes
2answers
263 views

Adding a coordinate label to individual squares in ArrayPlot[…]

Can I write text, or add a specific text label to individual squares of an ArrayPlot[...] graphic? Specifically, I would like to assign an two-dimensional integer coordinate label to each square.
3
votes
1answer
235 views

Debugging graphics

All the examples I am seeing on internet are related to normal functions that carry out loops and assignments but I have not seen one example where I can see a graphics based program being debugged. ...
3
votes
2answers
429 views

Rules governing Plot line generation

I was looking at the Documentation Center for Round, Ceiling and Floor when I noticed that ...
3
votes
1answer
581 views

Problem in RegionPlot3D

I tried to plot the region bounded by the three planes. This is supposed to give me a pyramid type of shape (actually two, but I am just taking one of them). The code is given by ...
3
votes
1answer
653 views

How to highlight various parts of a plot

I'd like to show students a graph of a function, say $(x,y)\mapsto\sqrt[3]{x^3+y^3}$, and then highlight its various properties connected with (non)differentiability at certain points etc. Having ...
3
votes
2answers
237 views

Using one table for multiple arguments

So I want to plot two graphs (on the same plot). One which is the $\frac{\sum_{i=0}^n x_i}{n}$ and the other $\frac{\sum_{i=0}^n x_i}{n-1}$ where x is a set created by ...
3
votes
1answer
62 views

Exporting sharp corners in Bézier curves to pdf

I'm a bit baffled by this. I have a number of arrows in a series of diagrams, and I'm defining the arrowheads using Bézier curves such as ...
3
votes
1answer
66 views

Frame labels without a frame?

Is there a way to add labels to a 2D plot, without the Frame ? Here's a MWE which shows a simple graph with four labels around its frame. I need to remove the frame, but keep the labels. Is that ...
3
votes
2answers
64 views

NumberLinePlot — scaling coincident points

it doesn't seem the native function NumberLinePlot is able to scale points to reflect coincident points. When an expression such as ...
3
votes
1answer
66 views

How to let Graphics3D show texts only within the plot range?

OS: Windows Server 2012 R2 MMA Version: 10.3.0.0 ...
3
votes
1answer
131 views

Positioning of tick labels in a 3D plot

I am looking for an easy way to force this plot to label the $y$ axis with numbers below the axis automatically in the given view point. Now the label switches to the bottom when the view point ...
3
votes
1answer
43 views

How to get DateListPlot Epilog to display shapes

The following should produced a plot with an orange outlined disc labelled "A" on the dotted line. Epilog produces the dotted line and the text label but is unable ...
3
votes
1answer
162 views

Animating magnetic field lines on a circle

So I want to create a changing vector as a function of theta and have it's origin stay on the path of a circle. The vector I want to plot is: ...
3
votes
1answer
184 views

Animating N points

So I'm trying to create an animation of N interacting particles in two dimensions confined in a box. Generating the data is fine and it's being stored in a text file with two columns for each ...
3
votes
1answer
78 views

Restricting VectorPlot3D to a specific region

I'm trying to visualize the vector field on $\mathbb{R}^3$ given by the matrix $$\begin{pmatrix} 1 & 0 & 0\\ 0 & \cosh(t) & \sinh(t)\\ 0 & \sinh(t) & \cosh(t) \end{pmatrix},$$ ...
3
votes
2answers
167 views

Manipulate a 2D point controlled simultaneously by Locator and its coordinates

I'm trying to have a point in the plane which can be manipulated both using Locator as well as inserting its $x$ and $y$ coordinates. My attempts at doing this are: ...
3
votes
1answer
146 views

How to change the atom size of LatticeData [duplicate]

Using the "Image" property of LatticeData, I can generate representation of lattice structures (like the first basic example ...
3
votes
2answers
713 views

How to change the font color and size of tick labels by default

I've read Mike Honeychurch's answer here, and while it tells me how to change the font size on all of my plots, that size change affects (I think) all text on the plot. I would like to be able to make ...
3
votes
1answer
192 views

Keeping Font Relative Size to Object/Graphics/Plot Object upon Resize

I want to keep the text generated within a graph/plot to remain the same relative to an element (a disk of size 0.2) of the image upon resize, not the image itself, while maintaining the original ...
3
votes
1answer
79 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 ...
3
votes
2answers
285 views

How to obtain the GIF by Mathematica?

Is it possible to create such GIF illustration amination by Mathematica? and the rendering effects of each trigonometric function curve. UPDATE I have mainly two puzzles: 1) how to obtain the ...
3
votes
1answer
92 views

Radius Values not Displaying in (List)PolarPlot

I'm having troubles with the PolarAxes option in ListPolarPlot under Mathematica 8.0. To be more specific, when I run the ...
3
votes
2answers
160 views

How can I get Inset to use ImageScaled, but preserve aspect ratio?

This code produces two identical images, despite the difference in the rectangles: ...
3
votes
1answer
319 views

project moving point onto a line

The following code displays three solutions to the logistic ODE with an animated points that follow the solutions.. My goal is to project the solutions on to a vertical phase line. I need to be able ...
3
votes
2answers
146 views

Expand Graphics based on all elements

How might I force the following Graphics element to expand to contain the Inset text? ...
3
votes
1answer
353 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
1answer
265 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: ...
3
votes
1answer
136 views

In a DynamicModule, is it possible to use multiple EventHandler declarations? [duplicate]

Possible Duplicate: Wrapping EventHandler by Table I am running Mathematica 7. However, I am new to using Dynamic, ...
3
votes
1answer
857 views

Lines with label in Plot options syntax

I wrote a little function to add lines with labels to plots. It just creates customized {GridLines -> ..., Epilog -> ...} code: ...
3
votes
1answer
284 views

How to partition MatrixPlot graphics?

Is there an easy approach - hopefully built-in - to partitioning MatrixPlot graphics into rows or columns (or both) of graphics sharing the same underlying options? ...
3
votes
1answer
92 views

Graphics[] not working from within For[]

Why is the following code not plotting the set of points from {1,1} to {10,10} ? For[i = 1, i <= 10, i++, Graphics[Point[{i, i}]]]
3
votes
1answer
214 views

Labeled and Graph don't mix?

In an attempt to create a legend for a graph drawing, I find that Labeled only works without the position options (except for Center). ...
3
votes
2answers
1k views

Plotting best-response functions

I'm a newbie in Mathematica. I'm trying to solve for two functions (best-response functions in a simple game), and then to plot the functions on the same graph. One function is p1 = resp1(p2) and the ...
3
votes
1answer
365 views

Rough edges plotting a surface

I'm trying to use SphericalPlot3D to create some images of a surface but I get some rough edges on the surface around the boundary. However, after rotating the ...
3
votes
1answer
226 views

Forcing a graph not to resize

This code: ...
3
votes
2answers
111 views

Density Plot: Colour Corresponding to Different Parts of a Function

I am trying to create a DensityPlot of a symmetric function f(r)=f(x,y) that is composed of 2 other functions: f(r)= g(r) + h(r) f(x,y)=g(x,y)+h(x,y). I can plot f(x,y) fine (can always convert ...
3
votes
1answer
40 views

Use (network) graph as vertex

I have a Markov chain with graphs as the states. Basically how one network structure would evolve to another in the next period. To avoid confusion, I'll use the term "network" instead of "graph". I ...
3
votes
1answer
73 views

Understanding FaceGrids

I'm having difficulties with FaceGrids. This should be pretty basic, but the documentation isn't helpfull with its fancy and mostly useless examples (again!) I ...
3
votes
1answer
118 views

How to do individual axis labeling with use SciDraw multipanel figures?

I am trying to make a 6 panel figure for publication where each X and Y axis has its own label. Here is simplified code and its output: ...
3
votes
1answer
138 views

Hasse Diagrams from Adjacency Matrix

Let's say I have a rather large adjacency matrix for a partial order relation. Say an 80x80 matrix. What is the best way to display Hasse diagram? I have tried AdjacencyGraph and it does a not so bad ...
3
votes
1answer
82 views

Rectangle or Polygon with no filling

I have: ...
3
votes
1answer
143 views

Update or Animate an ArrayPlot or MatrixPlot?

I am trying to add new row or column or points to a 2D plot as I keep generating the values. The trick is by using this method I will not be required to store the big array or matrix and will be ...
3
votes
1answer
119 views

ContourPlot has extra mesh

There is an odd white mesh that appears on top of any contour plot I make. ContourPlot[x + 2 y, {x, 80, 300}, {y, 50, 100}] Any ideas on how I get rid of this? ...
3
votes
1answer
59 views

Temporarily setting built-in function options at lower levels

Slightly extending rcollyer's handy helper (originally "BlockOptions") to TemporarilySet system function options via an operator ...
3
votes
1answer
193 views

How to hide and show graphics within Show (in Manipulate)

There is a well documented way to "Dynamically Hide and Show Plots" (link). In the example 'Opacity' option is effectively used. Is there an efficient way to make the same functionality with "Show"? I ...
3
votes
1answer
214 views

Multiple animation in Mathematica

I have the following in Mathematica: ...
3
votes
1answer
227 views

How to smoothly change the radius of a circle by dragging its circumference?

I am attempting to set an EventHandler to change the radius of a circle by dragging on its circumference. But the response to the dragging is terribly slow. What is ...