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

learn more… | top users | synonyms (10)

0
votes
0answers
8 views
1
vote
3answers
60 views

Plot: Option MeshStyle: color rotation matching PlotStyle color rotation

This is a follow up question to plot: option plotstyle: start with second color in standard rotation I want the mesh points to have the same color as in PlotStyle ...
5
votes
3answers
2k views

PlotRange adjustments with BarChart

I'm working on making some BarCharts, however, some of my data is contained within a small range so I want the plot to start above 0 and cut-off the bars below ...
0
votes
0answers
39 views

Using previous outputs and equations for 3d plots

I am extremely new to Mathematica, and am trying to obtain some plots for my research work. I need to find the roots of a polynomial, and using the roots individually, I need to obtain another ...
3
votes
0answers
43 views

Is there a 3D version of ListStreamPlot[] (analogous to ListVectorPlot3D[])

Is there is straightforward way to visualize streamlines given a series of discrete samples of a 3D vector field? There is a generalization of ListVectorPlot --> ...
-2
votes
1answer
39 views

Plotting output in two columns beside each other from a for loop [closed]

How can I have the output plots in two columns instead of having the plots in a sequence? Like the following: []
1
vote
1answer
330 views

Plot a alphabetic character in 2D

I was wondering how I can graphically plot an alphabetic character, for example D, in 2 dimension, using mathematica? I was using ListPlot with specific x and y values but it's not looking anything ...
7
votes
1answer
325 views

plotting 3D image for the “grazing goat and silo” problem

I am looking for the code to generate a 3D graphic with this area rotated around its PQ-axis: The red circle represents a silo centered at point P. A goat is tethered at point Q on the edge of the ...
1
vote
2answers
56 views

How can I use the option PlotStyle to start plotting with second color in standard color rotation?

I would like to plot several functions in one plot and start the standard color rotation (ColorData[97, "ColorList"] // InputForm) from the second color and go on ...
0
votes
0answers
37 views

Handwritten style in Mathematica [duplicate]

Following image is from the Wolfram alpha How can I do this in Mathematica?
2
votes
1answer
97 views

How to add color to a knot

Is there a way to use a colorscheme to a KnotData image? One way is probably convert it to a parametric form and then use ...
5
votes
2answers
677 views

Set the same color scale across multiple ListContourPlots?

This is probably straightforward - but how would I set the same color scale across multiple ListContourPlots? if I have values from 10 to 25 on one ListContourPlot and values from 40 to 100 on ...
1
vote
1answer
115 views

Plotting open balls for the given metric spaces [closed]

We're given a metric space (R,d) defined as follows: $$d(x,y) = |x-y|$$ We need to draw a open ball for this metric space with centre and radius of our choice. Open ball definition: For a fixed $x$ ...
1
vote
0answers
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 ...
0
votes
0answers
29 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 ...
15
votes
4answers
909 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., ...
2
votes
1answer
53 views

Evaluation of FilterRules inside a Module

I'm trying to customize a plot function according to this code ...
3
votes
1answer
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 ...
1
vote
1answer
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: ...
-1
votes
1answer
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 ...
3
votes
2answers
94 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 ...
1
vote
0answers
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 ...
3
votes
1answer
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 ...
0
votes
0answers
42 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 ...
0
votes
0answers
57 views

ListDensityPlot3D with discrete user data [on hold]

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 ...
0
votes
4answers
59 views
6
votes
1answer
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?
0
votes
1answer
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}] ...
8
votes
1answer
157 views

Alignment of `TreePlot`

I want to construct a binomial tree using TreePlot but have troubles with the alignment. The code ...
-1
votes
1answer
61 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 ...
3
votes
1answer
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 ...
0
votes
3answers
168 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? ...
3
votes
1answer
71 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 ...
8
votes
2answers
159 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 ...
16
votes
3answers
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: ...
1
vote
1answer
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) ...
0
votes
1answer
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 ...
3
votes
0answers
52 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 ...
0
votes
1answer
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 ...
2
votes
1answer
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: ...
8
votes
1answer
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 ...
2
votes
3answers
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 ...
-1
votes
0answers
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 ...
2
votes
1answer
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 ...
6
votes
0answers
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 ...
65
votes
2answers
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 ...
2
votes
3answers
153 views

Export NDSolve results

I can see the correct result of my NDSolve when I plot them with large PlotPoints. ...
13
votes
1answer
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: ...
3
votes
4answers
241 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 ...
2
votes
0answers
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 ...