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
0answers
11 views

Saving a plot after using the drawing tool

This might seem very obvious but I'm on the verge of losing all the annotations I've made on a graph because I can't figure a way to save it after using the drawing tool to add a few extras to the ...
3
votes
2answers
26 views

Positioning axes labels

I need to change the position of my axes labels such that the y-axis label is in the middle and parallel to the y-axis. I'd also like the x-axis label to be in the middle of the x-axis rather than ...
6
votes
1answer
173 views

Plotting iterated function system images

I'm new not only to this forum, but to Mathematica in general, evidently. I'm running into an issue, and my best attempts at Googling solutions (and trying the search box for this forum) came up with ...
6
votes
2answers
2k views

Formatting Ticks and FrameTicks labels with a function

Is there a convenient way to format tick labels? In this example I would like to use the default Mathematica tick intervals, but simply convert the X axis labels to strings with "s" added. As you ...
0
votes
1answer
30 views

EdgeForm with Graphics

I want my figure to have an edge and I am playing around with EdgeForm[Thick], putting it in different places. My figure is: ...
3
votes
0answers
49 views

Simple ways to implement vector dilation

Suppose we have a singly connected but not necessarily convex polygon. Something like shape = CountryData["Chad", "Coordinates"]. Is there a simple way to ...
0
votes
1answer
37 views

How can I move the x-axis label beneath (instead of at the end of) the x-axis?

I borrowed this code from a Wolfram demo. I looked at several answers to the general question of how to move the x-axis label from the end of the x-axis to beneath it (use ...
2
votes
1answer
96 views

Help me export high-resolution TIFF figure

I have generated a figure in MMA by ContourPlot3D. How can I export this figure in high-resolution TIFF format(say, 1200 dpi for lines, 300 dpi for halftone and ...
6
votes
3answers
383 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 ...
5
votes
2answers
107 views

How to export images in EPS format that can be opened in CorelDraw

I am preparing a paper. The journal requirements are odd: only eps files for pictures are accepted. All pictures I have drawn in Mathematica and exported in eps format in the usual way: ...
4
votes
2answers
71 views

How to scale multiple graphics to preserve relative sizes?

I'm looking for a simple way to make the displays of different Graphics expressions accurately reflect their relative sizes. (By "simple" I mean that it does not ...
3
votes
1answer
64 views

How to get the size of a specific image in the front end?

The title pretty much says it all. One possible point of confusion is that this question is not limited to items with head Image. I don't know what is the ...
4
votes
3answers
195 views

Drawing a ladder graph with Line and Table/Array

I want to programmatically draw a ladder graph like the one below: I'd like to use Table to dynamically add steps. My (lame) attempt so far: ...
13
votes
1answer
128 views

How to retrieve current FaceForm?

The current colour in a Graphics object can be retrieved using CurrentValue["Color"] for use in Dynamic stuff. Example: ...
18
votes
3answers
603 views

How to plot an emission spectrum?

If I have a list of data with various wavelengths in nanometers, how would I plot them on a graph so it looks like this: So far I have managed to plot a spectrum in ...
7
votes
3answers
175 views

How to solve for the intersection points of two ellipses?

I have a parametric equation of two ellipses as follow $\begin{cases} x=a_1 \text{sin$\theta $}+b_1 \text{cos$\theta $}+c_1 \\ y=d_1 \text{sin$\theta $}+e_1 \text{cos$\theta $}+f_1 \\ ...
0
votes
1answer
57 views

Plot some ordered pairs on the Cartesian plane? [closed]

Can Mathematica show me a coordinate grid ( x-y plane) with some ordered pairs plotted on the plane? Or even better, some complex numbers represented as vectors on the real-imaginary plane.
1
vote
1answer
39 views

How to save all images in GraphicsGrid?

I have a 2X2 images. How to save all the images at once while using GraphicsGrid ? when I try the save graphic option only one image is saved
0
votes
3answers
261 views

Mapping Contour Plot onto ListPlot3D (or by using color variations)

I am trying to overlay a contour plot I have created on a ListPlot3D graph. I have seen a few questions answered on this website that answer my basic question. ...
1
vote
1answer
117 views

How to make program for phase portrait?

I need to add a phase portrait to my program. The program is below, and I need to create a graph like the one in the picture. My step size needs to be 5, from x0,y0 = 10 to x0,y0 = 50. ...
4
votes
2answers
161 views

How to get rid of the background tiny crosses when using Graphics?

I am plotting very tiny arrows. For large arrows there is no problem but for small ones, one can see little crosses in the arrow positions. I do not want to see this crosses. I just want to see no ...
3
votes
1answer
199 views

ContourPlot is slow and unwieldy and generates a large-data graphic

I'm constructing a single contour showing the points in a plane that satisfy a function. The general form is ContourPlot[f[x, y] == 0, {x, 0, .5}, {y, 0.2, .5}] ...
0
votes
0answers
28 views

Color Gradient on points using ErrorListPlot

I am having some difficulties getting a value-dependent color gradient on points with ErrorListPlot. I am starting with a list looking like ...
10
votes
3answers
165 views

Adds a rug representation to plot

This question came to me when I read How convert list of numbers to list of points on x-axis? @Mr.W suggested Interlacing a single number into a long list for the question. @Artes provides a very ...
8
votes
1answer
138 views

Isometric perspective for Graphics3D

Is it possible to render Graphics3D in an isometric projection? I know that the ViewPoint option can be used for orthogonal ...
0
votes
0answers
12 views

Finding parameters of a gaussian mixture model that uses markov models [migrated]

I'm using this paper for reference http://www.cs.cornell.edu/~asaxena/learningdepth/saxena_ijcv07_learningdepth.pdf I could get all the features required but have trouble with the probabilistic model. ...
7
votes
2answers
1k views

Manipulating plot of random iterated function system fractal

I'm generating the Sierpinski Gasket by implementing a chaos game in Mathematica. What I'd like to do is create an interactive manipulation with a slider, whereby moving it forward, plots all the ...
5
votes
2answers
69 views

Locator-based abscissa ranges widget

I'm trying to implement a widget that will enable users to graphically determine certain abscissa ranges in a 2D plot. I've started by coding a prototype, whose output looks like this: The idea ...
2
votes
0answers
100 views

Export 3D plot or Graphics3D object as stereoscopic 3D .jps file

I recently came across some Matlab code to output a 3D graph as a stereoscopic left/right .JPS file, viewable e.g. with 3D Media Viewer, Stereoscopic Player or using any 3D television or beamer: ...
0
votes
0answers
105 views

MeshFunction at azimuthal angles for RegionPlot3D

Edit: I said "polar angle"... It should be "Azimuthal angle". Sorry. I want to plot a Mesh line at a certain azimuthal angle in RegionPlot3D. My goal is to ...
16
votes
2answers
490 views

Scaling edge thicknesses

UPDATE There may be some confusion as to the specification of the problem. kguler's answer doesn't really answer the question. I'll try to elaborate a bit at the bottom of the post. One problem ...
21
votes
5answers
3k views

Plotting several functions

I'd like to plot a function of one real and one integer variable, but I don't want them all shown in the same 2-D plot - I'd like to see them as separate curves so I can see both "axes", more like how ...
6
votes
4answers
664 views

Combining 2D slices into a 3D plot

I am currently trying to combine several 2D plots into one big 3D plot. The 2D-plots are simply input-results from calculations (so these things have 2D coördinates (x,y)). The results depend on an ...
5
votes
4answers
364 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 ...
3
votes
2answers
105 views

Matrix Plot: How to Apply color function to only a region of the plot

I want to make a matrix plot where a color function is applied to a region of a matrix. Those matrix elements which were not in the region specified should not have any color associated with them, and ...
12
votes
1answer
230 views

Unwanted PlotMarkers appear at non-existent places

Bug introduced in 7.0 or earlier and persisting through 10.1.0 or later In this simple code ...
14
votes
5answers
423 views

How can I generate and randomly assign color to annular sectors?

How can I generate such an image and fill every annular sector with a random colour?
16
votes
3answers
752 views

2D Visualization of links and knots

I am trying to draw a picture using Mathematica of three loops linking together in 3D as follows. ...
1
vote
1answer
63 views

How do I display graphics in the Wolfram Language kernel? [duplicate]

I'm unable to view graphics output when working directly with the kernel from a terminal window. How do I display graphics when working that way?
12
votes
2answers
295 views

Interpolation on a regular square grid spanning a triangular domain

Context I am trying to identify contours of a function which is sampled on a cartesian grid within an irregular (triangular) region. Here is the data ...
0
votes
1answer
57 views

Draw a number of rectangles from list of coordinates [closed]

I'm new to Mathematica and this is also my first post here. Now for the question: I try to let Mathematica draw a number of rectangles from lists of coordinates. Unfortunately it only works when I ...
1
vote
1answer
49 views

Contours aren't aligned with frame ticks in ContourPlot

Because of the problem described in BarLegend can't make spaced contours when contours number>11, I decided to brew my homemade spaced-contours-barlegend. After some trials I get something like ...
0
votes
0answers
21 views

Export an Interactive diagram in CDF format

I am trying to create a CDF File I can play at school to present an optimization problem. In order to make it clearer for my students, I imported a few images as JPG, stored them as variables and used ...
13
votes
5answers
704 views

Animate point going around a triangle

How can I animate a point moving on a triangle's sides? I can generate a triangle and point, but I have no idea how to define point movement. I'm guessing that I have to use $\sin$ and $\cos$ in ...
32
votes
6answers
2k views

How to plot ternary density plots?

How can I get a ternary density plot just like the plots from OriginLab? ContourPlot and DensityPlot seemingly can accept the ...
13
votes
1answer
411 views

Mathematica: 3D plot based on combined 2D graphs

I have several sigmoidal fits to 3 different datasets, with mean fit predictions plus the 95% confidence limits (not symmetrical around the mean) and the actual data. I would now like to show these ...