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

learn more… | top users | synonyms (6)

0
votes
1answer
23 views

How may I avoid ParametricPlot3D clipping?

What I am doing: ParametricPlot3D[{Cos[z/2]^6 * Cos[t],Cos[z/2]^6 * Sin[t], z}, {t,-Pi, Pi},{z,-Pi,Pi}] What I get: What I want: what I get, but without the ...
3
votes
2answers
187 views

Storing Variables in “Loops” and Point Plotting

Given the function $y=\sin x$ defined over the region $-\pi \leq x \leq \pi$, I need to implement a "do loop" such that I sweep over 100 or so points $-1 \leq y \leq 1$ and find precisely the two $x$ ...
1
vote
2answers
80 views

Plotting a function with implicitly defined variable

I have a question about plotting a function with an implicitly defined variable. I think the solution should be something similar like here: Define a function with variables linked implicitly but I ...
1
vote
1answer
43 views

Plotting function in cylindrical coordinates (r,theta,z) [duplicate]

I have a function of two variables (r,theta), and I would like to plot it as a surface using cylindrical coordinates. Based on my research, there is no built mathematica function for plotting ...
0
votes
1answer
55 views

Sum with 2 different variables

I want to plot Contour or Streamplot a function with a sum. The first part (Abs[v/u]>1) looks like this: $L(u,v)=\sum_{s=0}^\infty \frac{(-1)^s}{2s+1} ...
0
votes
0answers
47 views

The graph of a piecewise function [on hold]

Let $$f(x)=\begin{cases} n,\quad\text{if }\quad n<x<n+\frac{1}{n^3}, \\ 0,\quad\text{if }\quad n+\frac{1}{n^3}\leq x\leq n+1 , \end{cases}$$ Using mathematica, I attempted to draw the graph ...
2
votes
1answer
119 views

Plot not working for a phase diagram

Whatever I have tried, I could not achieve to plot numerical values coming from my system of differential equation. It is a optimal control model with two state variables. My differential system is ...
0
votes
1answer
38 views
2
votes
3answers
102 views

Integrate over Piecewise function efficiently

I have this Piecewise function: ...
0
votes
0answers
57 views

DateListPlot not showing data from a data bin

I'm trying to plot a databin using mathematica online and this is my code: DateListPlot[Databin["640I6KQm"]] All that happens is data added manually shows up. ...
9
votes
1answer
62 views

NumberLinePlot missing large segments of interval

What is going on here? Why isn't it extending to the full range? Removing the + 0.0 gives the correct ...
1
vote
0answers
61 views

3D game from my Magic cube [on hold]

I'm a student of design. I created a Magic cube. How can I make this game with Mathematica? I have already imported a mesh *.obj with 192 triangles. If anyone knows how to do this please reply.
2
votes
1answer
97 views

Problem with code from Stan Wagon's book [duplicate]

Stan Wagon's Third Edition of Mathematica in Action has this code on page 30: ...
3
votes
1answer
119 views

Unexpected results from trying to solve Laplace's equation

I am trying to find the solution to Laplace's equation: $\dfrac{\partial^2 u}{\partial x^2}+\dfrac{\partial^2 u}{\partial y^2}=0$ over the following region of space: the vertices of the triangle ...
4
votes
1answer
78 views

PlotLegends “Expressions” default for ListPlot?

gwr pointed out an apparent problem with setting a default Option value of PlotLegends for DateListPlot. I traced the problem ...
0
votes
0answers
37 views

Adding known error bars to a bar plot [on hold]

I want to add error bars that I already have calculated onto my bar plot. I can't seem to find a function that will do this. I've found ways to enter all the data and have Mathematica calculate, and ...
0
votes
1answer
33 views

Axeslabel doesn't work when using Frame and FrameTicks,

I'm using FrameTicks and Frame to get a second y-axis. But then my axes labels disappear. I've solved it by using ...
2
votes
2answers
63 views

How to transpose x and y axis on a LogLogPlot?

how can i exchange x and y Axis of this loglogplot? ...
2
votes
1answer
57 views

Blank plot when using WorkingPrecision

I have the following code: Inv=WeierstrassInvariants[{1,I/3}] ...
3
votes
1answer
50 views

Display frame-tick labels on top side

I am making a standard framed Plot and would like the frame tick labels for the horizontal axis to appear on the top frame edge. I know I can do this by hand ...
6
votes
5answers
336 views

Help remove annoying vertical lines in a piecewise plot

I use the following codes to define and plot three piecewise functions. ...
1
vote
2answers
88 views

How to define a sequence of piecewise functions and then plot them altogether?

The following is the piecewise functions I want to define ${f_k(x)} = \left\{ {\begin{array}{*{20}{c}} {\frac{{j - 1}}{{{2^k}}}}&{\frac{{j - 1}}{{{2^k}}} \le f(x) \le \frac{j}{{{2^k}}}}\\ ...
0
votes
1answer
48 views

BarChart: Want to rotate and place a y-axis label on the left side

I would like to know if it's posible to place the y-axis label roated on the left side without using Frame->True and ...
2
votes
0answers
93 views

Fitting local regression through data

Is there a way to fit local regression through data in Mathematica (equivalent to say "smooth" in ggplot-R)? I've literally spent the last hour searching the internet and documentation centre and I ...
2
votes
1answer
95 views

Plot a curve on a lattice

How do I plot a 2d curve and label lattice points to one side of it? I want to plot the curve $f[x]=\frac{1}{x}$, and draw a solid red dot at every lattice point in the following set: $$\{(m,n)\in ...
5
votes
1answer
100 views

VectorPlot only shows dots [duplicate]

I am trying to plot a electric field: vec = 1/(16 π ) Abs[{ex, ey, ez}]^2; ...
0
votes
1answer
37 views

Combining Plot and ListPlot using appropriate colours [closed]

I have Plot and ListPlot and I want to combine the using Show: ...
0
votes
0answers
50 views

Nesting a 2D Plane in a RegionPlot3D

So basically I am trying to project a 2D Region onto a 3D Region. Here is some code: ...
0
votes
0answers
34 views

Adding a legend to ListContourPlot [duplicate]

I am struggling to add a legend to my plots. I am using ListContourPlot and my data is ASiAufrontZnO, which is an array of data with three columns ...
0
votes
2answers
74 views

Easy way to add another parameter to Manipulate

Vector definitions: I'm sorry that I didn't include the Vector definitions. I forgot because I had them in initialization cells. Here they are: ...
-1
votes
1answer
58 views

ParametricPlot not plotting the results I'm getting from NDSolve

I try to plot a phase diagram with ParametricPlot but everytime Mathematica does nothing. I start by ; ...
6
votes
1answer
38 views

How can I specify position of ContourLabel? [duplicate]

Consider the ContourLabeled plot: ...
3
votes
0answers
62 views

StreamPlot of potential flow from a finite element calculation

I am trying to calculate a potential flow past a thick plate. The finite element calculation seems to go well but I am finding it difficult to get a nice plot of the flow. The stages below are, ...
2
votes
3answers
71 views

Initial value producing an error in a dynamic display

I have ...
0
votes
0answers
36 views

Creating multiple plots from multiple lists [closed]

I'm having trouble creating a series of list plots from a set of lists. I have 19 lists and I would like to have 19 Listplots. Here is an example of what i've got now: ...
2
votes
2answers
123 views

Plotting a function over a region

I want to plot $f(x,y)=\max(x,y)$ over this region $y > -3x + 9 $, $y > -x + 5$, $y > -1/3x + 3, x \leq 6 $ and $ y \leq 7$. I've seen some answers, but nothing that could be applied to my ...
0
votes
0answers
35 views

Plotting vectorfield as a function of t [closed]

I'm trying to plot a vector field, Y(t)=({e^(-5 t), -5 e^(-5 t)}. Here is my input: VectorPlot[{e^(-5 t), -5 e^(-5 t)}, {x, -10, 10}, {y, -10, 10}]. I also ...
0
votes
0answers
30 views

Plotting with Controlled Precision [closed]

I cannot plot using the command "WorkingPrecision" or N[.] for some reason. For example, when I compute: Plot[sin[x], {x,0,3}, WorkingPrecision -> 60]. I get ...
3
votes
1answer
159 views

How to fill curves with a color gradient?

I would like to produce a graphic like this but with a continous color gradient between the outer curves. Is it possible to achieve this by using the Filling ...
0
votes
0answers
51 views

Lines, surfaces,3D objects represented in 4D [closed]

How are 3D projections of lines/surfaces/ 3D objects represented in Euclidean space? My rudimentary particular case understanding was that there are four dependent coordinates ( x,y,z and w) as ...
5
votes
1answer
61 views

How to change the x-axis ticks from numbers to months

I have a ListLinePlot, for which the x-axis is time (November 2011 to January 2014). Now, when I plot it, the x-axis ticks run from 1 to 28 because the time ...
2
votes
1answer
59 views

How to change the font size of a pie chart's legend

I have a pie chart and I would like to make the font size of the legend bigger. I was able to make the fonts bigger for the chart labels but ...
4
votes
1answer
88 views

Vector tips seem to resize and get ugly in some situations

In Selwyn Hollis's CalcLabs with Mathematica, Multivariable Calculus, 5th ed., he does some nice initialization code for adding vectors to a plot. ...
11
votes
2answers
188 views

What will happen if I set ExclusionsStyle for points in 2D plot?

For example f[x_] := (x^5 - 4 x^2 + 1)/(x - 1/2); Plot[f[x], {x, -1, 2}, Exclusions -> {f[x] == 0}, ExclusionsStyle -> Dashed] Has the ...
0
votes
1answer
49 views

smoothing plot edges

I have a data list as mydata: ...
3
votes
2answers
122 views

Why do I need to apply DiscretizeRegion to a derived region to visualize it?

What are the design principles, or other explanations, as to why one needs to apply DiscretizeRegion to obtain a graphical representation of a derived region, ...
0
votes
1answer
45 views

Ndsolve parametricplot

Ndsolve solution cant manipulate parametric plot!! ...
2
votes
2answers
67 views

Density plot with list data and preferable boundary

I have a list as ...
0
votes
0answers
20 views

Specifying plot markers (filled diamonds or squares) [duplicate]

I can plot my list data and I can use of specifying circle to show my plot-markers. I used of Mr.Wizard comments on that page. But I don't know how can I fill the circles of those plot-markers with ...
3
votes
1answer
128 views

How can you get the area of a region from an image?

Suppose we have a square of side "L" m, How can I calculate the hatched area, if the corners of the square are centers of circles. It can be generalized to any region? edit: This is the result I ...