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

6
votes
1answer
90 views

How to export interactive animations into D3.js? [duplicate]

Are there any existing examples or 3rd party repositories that attempt to make this possible at any level?
7
votes
2answers
130 views

Panning with Mouse + Moving A Curve

I would like to be able to move any curve (for example f(x)=x, or g(x)=x^2) by mouse dragging the particular curve. I would like to keep the functionality I have for panning across the screen in ...
3
votes
1answer
64 views

Is the real spherical harmonic (l = 1, m = 0) really 'bigger' than (l = 1, m = 1)?

Using SphericalPlot3D to plot the real spherical harmonic with l = 1 and m = 0: ...
11
votes
1answer
190 views

How to see a code preview (in Experimental`Explore[] or related GUI)

I have been messing around with built in Experimental`Explore[] function. You can call the function in Mathematica yourself to see what it looks like. It is a GUI ...
3
votes
1answer
62 views

Rasterize alters the quality of the figure

A quick 3D plot ...
10
votes
4answers
357 views

Panning with Mouse

This is related to the question i just asked here but not the same. How could i create a manipulate that lets me move the graph to any position i want by clicking and dragging anywhere. Here is an ...
7
votes
2answers
190 views

Panning by moving Origin (0,0) with Mouse

Given a 10 by 10 grid like the one below and the axis origin somewhere on the grid, I would like to be able to place the mouse pointer at the axes origin (0,0), then press and hold the mouse button ...
6
votes
3answers
270 views

Draw grids on the xy-, xz, and yz-planes

I would like to draw grids on the coordinate planes. I see that Mathematica has a built in function called facegrid but it seems to want a primitive as input. Even if I give it a blank input it used ...
3
votes
2answers
163 views

Filling a rectangle with an image

Say I have some rectangles of different sizes drawn on the screen. How can I fill them all with the same image? Ideally, the image would be resized to completely fill each rectangle. I've been trying ...
0
votes
0answers
95 views

Using a standalone CDF to replace a typical graphing calculator

I can use Manipulate[] to create a grapher that emulates some of the functionality of a typical graphing calculator.By using ...
3
votes
2answers
121 views

Changing location and direction of axes

I need to produce a plot that looks something like this: from a function definition where z (the vertical axis) is the independent variable. I can easily invert ...
6
votes
1answer
228 views

How to plot graphics objects such as lines or polygons logarithmically

I am making ListLogLog plots with polygons in the Prolog and lines in the Epilog, and I want ...
1
vote
0answers
50 views

How to align/grid several plots(mXn) in one figure? [duplicate]

I run Mathematica 10.0.2 on my Win7. I'm trying to make a PDF for publication similar to figure below: This is a figure containing a 4X3 image. The feature in image is irrelevant, my point is to ...
4
votes
3answers
166 views

Creating curves that satisfy $f(x)\le g(x)\le h(x)$

All, I haven't experienced this task in Mathematica yet, maybe using Bezier curves, Interpolation, or some such thing to create the following image. Can someone give me an introduction to ...
2
votes
1answer
65 views

something like gap axis [closed]

If we have two financial graphics like EPAM and IBM. How we can do this? Sorry, for my English.I think, you understand me
3
votes
1answer
98 views

Adding text on an .xyz file of an atom

I know it is possible to view .xyz files of coordinates in Mathematica. I tried to write some text on a specific atom using Text, but I was not successful. How can i do that? Thanks for the help in ...
11
votes
2answers
152 views

How to prevent Dynamic activity with colour swatches in V10+

Since V10 if I type e.g. an RGBColor or simply a named color a dynamic colour swatch is returned. Same goes for when you e.g. extract colours from a plot (in ...
0
votes
0answers
60 views

Problem with BSplineCurve 3D

I have a problem using the function BSplineCurve [ ] . I have to represent a line passing through about 3000 points in 3D. I managed to plot the points separately, but when I use the 3D BSplineCurve ...
0
votes
1answer
36 views

Exporting multiple sizes of the same image

I have generated an image using (for example) out = Plot[x^2, {x, -2, 0}, PlotLegends -> {x^2}] and would like to export two versions of that image, one that ...
5
votes
1answer
130 views

Looking for an extensive gallery of Mathematica's 2D graphics

I am having a hard time conveying to my co-workers why I think that what they consider "advanced", "high-quality" scientific graphics1 does not hold a candle to what one could do already do with ...
3
votes
1answer
131 views

Move Graphics Object

I'm an artist trying out digital media. I'm very new to Mathematica, however, so excuse me if this a basic question (which I'm sure it is). I did look, though, for anything on this site related to my ...
6
votes
2answers
167 views

Arrow head halfway along parametric plot

I have a problem with putting arrowheads on my parametric plot, I have looked through the various examples on here, which all work fine, but when I replace it with the code for my parametric plot, I ...
5
votes
1answer
100 views

PlotStyle according to PlotRange

I have the function Hypocycloid[{R_, r_}, θ_] := {(R - r) Cos[θ] + r Cos[θ (R - r)/r], (R - r) Sin[θ] - r Sin[θ (R - r)/r]} For, e.g., R=5 and ...
1
vote
2answers
71 views

Updating ParametricPlot3D code from Getz and Helmstedt book to use V10.3 features

I purchased a version of Graphics with Mathematica, Fractals, Julia Sets, Patterns and Natural Forms, by Chonta Getz and Janet Helmstedt, written in 2004. Really fun book. I'm looking at the ...
6
votes
3answers
235 views

What is causing these artifacts in RegionPlot3D?

I have a simple program like this: ...
0
votes
1answer
38 views

ListPolarPlot does not allow PolarAxes->True or PolarGridLines->True? [closed]

I am running the personal version of Mathematica 9 on a MacBook Air with OS 10.10.5. When I try to activate PolarAxes->True and/or ...
3
votes
1answer
114 views

Creating a custom color plot with tones of colors

Here is a sample set of data ...
4
votes
5answers
268 views

Show intersection points between a curve and a line [duplicate]

I'm pretty new to Mathematica. I'd like to show the intersection points in my graphic. These are my inputs: ...
14
votes
2answers
270 views

How to export textures?

Is there any object geometry format for which Mathematica supports the exporting of textures for external (non-Mathematica) use ? If not does anyone know of work arounds? All the texture primitives ...
2
votes
1answer
47 views

Scaling in “GraphicsGrid” command

I want to plot four ellipses on the same graphics, along with some vectors and disks. I am using the Graphics command to create the arrows, ellipses and disks, and ...
-1
votes
1answer
62 views

Jumping from one dimension (1D) to two dimensions (2D) Part II

Here is a sample data file data = {{-10,3,1},{-7.5,12,3},{-1.5,5,2},{2,4,4},{3,7,4},{6,9,5},{7,1,5}, {8,3,1},{9,12,2},{10,8,5}}; The first element of the list ...
0
votes
1answer
71 views

Jumping from one dimension (1D) to two dimensions (2D)

Here is a sample data file m = {{-10,3,1},{-7.5,12,3},{-1.5,5,2},{2,4,4},{3,7,4},{6,9,5},{7,1,5}, {8,3,1},{9,12,2},{10,8,5}}; The first element of the list ...
3
votes
1answer
129 views

Graphics3D/Plot3D rendering issue

I have an issue in Mathematica with the rendering of 3D graphics. Two sides (right and bottom) of some sort of bounding box are present, and, in the instance of ...
2
votes
2answers
95 views

Filling a between lines using table and line

Graphics[{ Table [Line[{{0, step}, {1, step}}], {step, 0, 10}], Table [Line[{{0, step}, {10, 5}}], {step, 0, 10}] }] I am trying to fill between all the ...
-1
votes
2answers
94 views

How to put single points inside the plot? [duplicate]

I wrote this simple code for a basic plot (two lines): ...
29
votes
2answers
863 views

How can I use Kenneth Moreland's “Diverging Color Maps for Scientific Visualization” in plots?

I often want to plot two dimensional data that is centered around zero (for me, this is usually a 2D optical spectroscopy signal, but there are other cases), and the MATLAB "Jet" color scheme is ...
13
votes
2answers
215 views

Why is DiscretizeGraphics missing points on my curve?

I have a graphics expression which renders nicely as a closed curve when put in Graphics, I don't understand why I can't get the lines from DiscretizeGraphics or ...
9
votes
4answers
489 views

Is there a Graphics primitive for a cone without a base?

Is there an easy way to get a graphics primitive for a cone without a base without using RevolutionPlot3D? I'm trying to create an "manipulable" animation of the ...
1
vote
2answers
47 views

How to use Show with Rotate

The following use of Show produces an error (Could not combine the graphics objects in Show) even though the two graphics objects are constructed just fine. ...
0
votes
0answers
50 views

How to export heterogeneous data to single file?

I want to export structured heterogeneous data (containing images) to some standard file format. The expression to export can contain 3 atomic types: numbers, strings, images, and be nested with 2 ...
1
vote
1answer
79 views

Vector graphics in Export for Video rendering

I am trying to generate a vector graphics video in Mathematica. I stumbled upon SWF format (PNG are raster images which I'm not interested in). SWF format works fine for me but the axes and the ...
1
vote
1answer
214 views

Basins of attraction of equilibrium points

The Henon-Heiles potential is the following V = 1/2*(x^2 + y^2) - y*(1/3*y^2 - x^2); which has four equilibrium points ...
3
votes
1answer
70 views

Rectangle or Polygon with no filling

I have: ...
2
votes
1answer
121 views

Basins of attraction using Newton's method Part II

For the function $F(z;Q,a) = 3z - \frac{z}{|z|^3}\left(1 + \frac{3a}{2|z|^2}\right) - Q$ the Newton iteration formula is $z_{n+1} = z_n - \frac{F(z_n;Q,a)}{F_z(z_n,a)} = ...
0
votes
1answer
111 views

Basins of attraction using Newton's method

In this question Original Post the user provides a working Mathematica code which plots the basins of attraction using the Newton's iteration method. However the code works only for the function $p(z) ...
2
votes
2answers
54 views

making a graphic of two variables

I have a two variables system (let say $c$ and $s$ for this variables) and as the system is too complicated to solve analytically, I try to find corresponding values for these two variables ...
10
votes
2answers
361 views

create an (almost) hexagonal mesh on an ellipsoid

EDIT I edited the question in order to take into @Kuba's comment. I want to create this figure with Mathematica (in particular an almost hexagonal mesh on an ellipsoid; thanks to @Kuba I know this ...
0
votes
1answer
50 views

How to produce a outer frame around a plot [closed]

The following question is related to plots and graphics. For a plot: ...
1
vote
1answer
64 views

Generate $n$ randomly oriented non-intersecting cylinders with fixed radius and length

This post is in reference to the previous question here. How could I adapt the solution given to have the following constraints: fixed radius, fixed length, number of cylinders, and within a ...
0
votes
1answer
86 views

Move figure to origin [closed]

I have used PixelValuePositions to get coordinates from a figure. But I would like to move the figure, so the origin is in the middle of the figure. An example ...