# Tagged Questions

Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

46 views

### Why does ContourPlot refuse to draw all 4 quadrants whenever fractional powers are in the implicit function? [closed]

I would like to plot the astroid which is given by: $x^{2/3} + y^{2/3} = 1$ When I use ...
28 views

### Graphing/Plotting multivariate profit function with inequalities

I have the following profit function which I would like to 3Dplot in Mathemathica: Profit = (8c^2-16c*s-10c-4s-3)/(32s+16) , where ...
907 views

### Can you plot pure function without specifying variable?

Given a pure function, e.g. f=Sin[#]&, it is possible to plot it with introducing an arbitrary local variable, e.g., ...
53 views

### Evaluation of FilterRules inside a Module

I'm trying to customize a plot function according to this code ...
42 views

### MatrixPlot ignores ColorFunction for 0 matrices

I noticed that when plotting a matrix with custom color function there seems to be a special behavior for matrices with just 0's. In this case the plot is simply white. If there is one non-zero ...
58 views

### Extract data from contour [duplicate]

I have a ListContourPlot, and I'm interested in extracting the data of one of the contours. Here is an example and I highlighted the contour that I would like to extract the data from: ...
46 views

### How to graph the max and min values of a sheet?

Hi I just start working in Mathematica version 10.3.1 and I want to graph a sheet of data that I created in Excel (yeah i use Windows). The problem is i have so many data; 200 columns and 50 row of ...
93 views

### Randomly oriented ellipses in rows and columns

I should plot randomly oriented ellipses in rows and columns, at fixed nodes. Some rows should be grey, some black. Result should look like the following image (texture drawn by hand): I moved from ...
24 views

### Size and Aspect ratio of exported EPS/PDF and embedding in latex documents [closed]

I've tried to produce figures in Mathematica that have a size consistent with the need of a Latex document. Using a resolution of 72dpi I could produce this the black box is 8.22cm x 5.08cm in a ...
331 views

### Grid generation around airfoil from data

Here is the data http://wikisend.com/download/405620/datapoints.dat I have (x,y) data for a grid around an airfoil and I am trying to figure out how I can draw radial and polar lines for the grid to ...
41 views

### Constant Strings?

I am writing a workbook to compute double integrals, and in order to graph the function in polar/cylindrical form, I have to make a substitution in the original formula. How can I have the original ...
55 views

### ListDensityPlot3D with discrete user data

I have a ext file with 7 columns and 5.000.000 lines (a trajectory file for a particle in 3D). After normalizing position vectors for each frame to norm 1, I basically obtain a list of three ...
59 views

### labeling ListPlot data and drawing vectors

I would like to plot these x,y data: ...
105 views

### Animate the line integral over a scalar field

There is a gif from Wikipedia, The line integral over a scalar field $f$. How to plot and animate this in Mathematica?
30 views

### How to assign arbitrary values to frameaxis of a ListDensityPlot

Maybe the question is stupid or already has been asked, however, I cannot find an answer while searching Q&A. Assume you have a Table[x*y,{x,1,4},{y,1,4}] ...
156 views

### Alignment of TreePlot

I want to construct a binomial tree using TreePlot but have troubles with the alignment. The code ...
59 views

### How to Manipulate[] Particles in a Box

so here is a set of data. set_of_particles_data here is the code with return some error. it said cannot combine the Graphics. first i copy and paste the data and save it as data.txt. how can i ...
198 views

### How to change parameters to equations of physical properties they belong to in an equation?

First off, I want to apologize for my poor English as I am not a native speaker. In my physics research, I had to solve a system of equations, from which I would get a solution for the speed of an ...
167 views

### Can I convert a 3-D plot into a 2-D plot?

I am studying the Landau Free Energy Equation. First of all the plot displayed only shown negative range. can i show the positive range too? (y-axes). Then, can I turn this plot into 2-D Plot? ...
70 views

### How to color the exterior of a region in a RegionPlot?

One can color the interior of a region by ColorFunction. But how to color the exterior of a region of a RegionPlot (I want to ...
156 views

### Labeled destroys the log scales in “log” plots when notebook is re-opened

Bug introduced in 10 or earlier and persists through 10.4 While testing this pdf export bug caused by Labeled, I noticed that this function also destroys the log ...
430 views

### How to group and join points

It seems there are many similar questions on Mathematica.SE, but none addresses (to the best of google) exactly my problem. I have the following data: ...
80 views

### Plot a line passing through two given points in 3D space

How can I plot straight line passing through two given points in 3D coordinates? For example, given the points M1: (2, -2, 0) and M2: (1, -3, -5) ...
40 views

### ContourPlot of an Implicit Function with a parameter

Is it possible to use ContourPlot for an implicit function when another parameter is changing. To be more precise, suppose we have a function of the form F[x,y,z]. Now for a fixed value of z=z1, we ...
51 views

### Possible bug with ticks with superscripts, Labeled and Export to PDF

Here is the minimal working example that gives me problems with Mathematica 10.4 on OSX ...
45 views

### Plot bivariate data with marginals using Graphics3D [duplicate]

I have some 2D data (a load of random walks) that I would like to show using a bivariate line plot with marginals attached (I would like the output to look similar to that in this question.) The ...
56 views

### Different fonts in the same Style in a Plot

I have a plot, not important what it is and I have a linelegend as below: ...
435 views

### What is going on in this plot?

Plot[{ArgMax[Cos[t] Sinc[2*Pi kl (Sin[t] - 1/Sqrt[2])], t]*180/Pi, 45}, {kl, 0, 10}, PlotRange -> Full] I want to know what causes this, and how to fix it ...
4k views

### How can I change the position of my plot legends?

As the title indicates, I want to change the current position of the legends in a combined plot. The Mathematica code I used is ...
46 views

### Errors- Calculating Gaussian Curvature for an Elliptical curve

I am trying to implement gaussian curvature for an elliptical curve. I apologize for the lack of brevity in my post. Below is the code that I am working on and the two errors that i am getting are ...
73 views

### Plot a revolution surface, with two cross sections to show its shape

I'm having trouble plotting a revolution surface with intersections. What I have done is shown in the figure, with the help of SphericalPlot3D: . But I can't plot ...
62 views

### Generating OpenCL C code [closed]

I'm trying to make an interactive complex function plotter using OpenCl. So far I can only plot functions that I hardcode into the kernel by hand. I'd like to be able to use ...
2k views

### Is it possible to define a new PlotTheme?

In version 10 one can define, say, \$PlotTheme = "Scientific" Which changes the appearance of all plots. This is fantastic because on the one hand I can have nice ...
153 views

### Export NDSolve results

I can see the correct result of my NDSolve when I plot them with large PlotPoints. ...
298 views

### Ticks in v10 - a bug or undocumented change

Bug introduced in 10.0 and fixed in 10.4 In this post @Heike provides this code: ...
238 views

### Tooltip with ListLinePlot and interpolation

Is it possible to get the coordinates of any point on a graph using Tooltip, ListLinePlot and interpolation ? For example on this simple example ...
45 views

### Optimization for iterating and plotting a matrix product and its elements?

I have an iterative matrix product of this type Since i didnt knew how to do it, I explicitly wrote the product as {Ayn + Bxn, Cyn + Dxn} and evaluated it with the NestList construct ...
41 views

### Using ParametricPlot to Display result of Maximize

One would expect that: Plot[f[x],{x,0,1/2}] and ParametricPlot[{x,f[x]},{x,0,1/2}] would always yield identical outputs. ...
120 views

MWE: ...
47 views

### ShowLegend - length of legend items

I have the following example code and would like to make the lines in the legend longer - how can that be done? Is there another possibility to plot such a legend when using ...
49 views

### Solution of a 5D Hypersurface and a 3D Surface

So I have an equation given by $$2rvz+v^2+x^2+y^2+z^2=1$$ which is a hypersurface and I want to intersect it with another surface $$1+v+rz=0$$ ...
87 views

### How to Find minimum and maximum using FindMaximum[] and FindMinimum[]

this is the data that i use to plot. data_damped_osccilation this is my code so far, however it still give me error ...
113 views

...
49 views

### Making Multiple Curves with ListLinePlot for Fixed Increments

I want to make a plot with, multiple curves, for fixed values of inc : where my x values are (c1+c2)/2) and my ...
68 views

...
51 views

### How to obtain the best fit values of a and b [closed]

here is set of data. ...
50 views

### Why my Function Has no Output Plot?

Below is my commands on a mathematica script to plot a function. In order to see why the function has issue to be plotted, I have tried to plot the intermediate functions one-by-one. It seems that my ...
74 views

### ListPlot and Show n plots from two lists with large n

For the context, I have been dealing with Random Matrices and Dyson Brownian motion. I have two lists, the first one contains the number of steps, so ...