Plotting Definition and 560 Threads

  1. M

    Mathematica Plotting Multiple values on different domains

    Hi PF! I have a list of numbers, and I'm trying to plot each constant value on a 1-unit long interval. What I'm trying is this a = Table[i, {i, 2, 8}]; For[i = 1, i < 5, i++, Plot[a[[i]], {x, i - 1, i}] // Print] but that generates plots that are not on the same axes. Any help?
  2. M

    Mathematica Plotting 0.3 on ListPlot with Variable Domain

    Hi PF! I type the following into Mathematica: domain = -10; ListPlot[{0.3}, PlotMarkers -> {{"\[LongDash]", Large}}, PlotRange -> {{0, 5.5}, {-10, 200}}] And notice we see the plot 0.3. But, now let domain = 0. Notice now we can't see 0.3. Does anyone know how to fix this?
  3. K

    MATLAB Matlab plotting and defining range

    how do you define x to be from minus pi to plus pi in matlab? i tried: x = -pi : piBut when i said plot (x,y) Matlab says: "Error using plot Data must be numeric, datetime, duration or an array convertible to double" (i already defined y interms of x, that function is ok) so i culd not...
  4. Atlas3

    MATLAB Matlab function plotting. A continuous step function

    i could use a bit of tutelage with Matlab. I have a rather simple equation I would like to plot. I want to create a rational series of primes divided by their corresponding W value from the equation I have. P are primes 2,3,5,7,11,13... I am still working on this. Thanks
  5. Y

    MHB Plotting y=x^1/3 - Why Different Results?

    Dear all, I was using the computer in order to plot the graph of \[y=x^{\frac{1}{3}}=\sqrt[3]{x}\] and two different plotters gave two different results. I don't understand why. Can you kindly explain ? The results are: Thank you !
  6. A

    Solution: Plotting Mathematica Homework w/ Recursion Limit Error

    Homework Statement Homework Equations E= kq/r^2 * r-hat where q= +/-(1.6*10^-19) The Attempt at a Solution x= (1.6*10^-19)*x/(x^2+y^2+(z+1)^2)^(3/2) - (1.6*10^-19)*x/(x^2+y^2+(z-1)^2)^(3/2)y= (1.6*10^-19)*y/(x^2+y^2+(z+1)^2)^(3/2) - (1.6*10^-19)*y/(x^2+y^2+(z-1)^2)^(3/2) z=...
  7. A

    Plotting more than one tally together in VISED MCNP version

    Hello, every body, I'm a new gust in this forum , and I have a question to the users of the simulation VISED version of MCNP software. Can we change some parameters in the materials part of the input file then reread the tally again to plot two different curves together on the same graph, or...
  8. opus

    Plotting Volume as a function of density, limit of this

    Homework Statement The density of an object is given by its mass divided by its volume: ##p=\frac{m}{V}## Use a calculator to plot the volume as a function of density (##V=\frac{m}{p}##), assuming a mass of 8kg (m=8). In the follow-up question (part b): Evaluate ##\lim_{p \rightarrow 0}...
  9. M

    Mathematica Why Does a Polar Plot of a Circle Only Show One Side of the Unit Circle?

    Why is it when I plot a circle from ##\theta \in [\pi/2,-\pi/2]## I get the right side of the unit circle: PolarPlot[1, {\[Theta], \[Pi]/2, -\[Pi]/2}] ? Shouldn't I get the left side?
  10. Z

    MHB Why I Get X & Y Mixed Up When Plotting Graphs

    Ok so I don't know what is wrong with me, but when it comes to graphs I often get x and y mixed up and the whole thing becomes very confusing. I had this question plot a graph using y = 2/3x The answer is: if x = 3 y = (2/3 * 3) = 2 x = 3, y = 2 and these are integers which can be plotted...
  11. K

    Plotting the waveforms of the harmonic components

    Homework Statement Hello everyone, I am currently experiencing a problem plotting harmonics in Excel. I'm only able to plot the fundamental wave properly, I can't figure out how to plot the 3rd and 5th harmonic as they have a different frequency. Can you point me in the right direction...
  12. D

    Problem with plotting a function in MATLAB

    Homework Statement Write code for solving the integral ##\int_{0}^{x}e^{-t^2}dx## using simpsons method and then plot the function from ##x = 0## to ##x = 5## with ##0.1## increment. Homework Equations 3. The Attempt at a Solution [/B] I was told that the best way to plot the function is to...
  13. A

    Plotting a Power Graph using Torque & RPM

    Hi guys, Sorry if this has been covered before but I have been searching the forum looking for the exact information and have been unable to find it. I am currently carrying out a project to make a Honda GX35 engine suitable for competing in the Shell Eco-Marathon where I will perform...
  14. M

    Mathematica Errors when plotting but not when evaluating

    Hi PF! Attached is a screenshot of my code: The issue I'm facing is not being able to plot at line 21. It's weird because when I evaluate ##\alpha[1/4]## on it's own line I instantly receive a 5X1 vector. When I evaluate the Table[##\phi##] statement also shown in line 21 on it's own line I...
  15. F

    Plotting Potential of 2 Charges: Solving 4πε0φ

    Homework Statement Consider the system of two charges shown in Fig. 2.8. Let z be the coordinate along the line on which the two charges lie, with z = 0 at the location of the positive charge. Make a plot of the potential φ (or rather 4πε0φ, for simplicity) along this line, from z = −5 m to z...
  16. L

    MATLAB Plotting Coordinate Transformations in Matlab

    I was reading this article (https://www.nature.com/articles/srep40083) about designing a panoramic lens with transformation optics, and wanted to try to play around with modifying the coordinate transformations. I contacted one of the authors of the article, and she mentioned that she plotted...
  17. W

    MATLAB Plotting animations (time-evolution)

    Hi all, I have a spatial probability density function that is dependent on ##x##, space and ##t##, time. I am able to make a plot for spatial probability density for each point in time by specifying ##t## values by using the fplot function. However, I want an animation that allows me to see...
  18. Cassius1n

    MATLAB Does anyone had this plotting problem with MATLAB?

    I have finsihed my work on an orbit propagator in MATLAB and now I'm trying to simulate the orbit with the help of the main script. tspan=[0 :860]; Position and velocity y0(1,1)= 743322.3616 ; y0(2,1)= -6346021.219 ...
  19. Morbidly_Green

    Python Removing previously plotted points on scatter plot; python

    Homework Statement I'm plotting moving particles and I need a way to refresh the graph space with every loop. Meaning I want the points to NOT leave a trail of other points behind them . Basically I want to get rid of the old points as I plot new ones. Homework Equations N\A The Attempt at a...
  20. K

    Minimum-maximum problem with graph plotting

    Homework Statement The first derivative of the area ##~\displaystyle A(a)=a\sqrt{r^2-\frac{a^2}{4}}## is positive everywhere Homework Equations When f'(x)>0 → the function rises The Attempt at a Solution $$A'=a\frac{1}{2}\left( r^2-\frac{a^2}{4} \right)^{-1/2}\cdot\left( \frac{1}{4}...
  21. S

    I Plotting a far-field Intensity distribution

    Hey, I'm attempting to plot a far-field intensity distribution using theoretical values, however I'm having difficulty with calculating the intensity using the following equation: $$I = I_o \frac {sin^{2}{b}}{b^{2}} \frac {sin^{2}{Ny}}{sin^{2}{y}}$$ where: $$y = \frac {kdX}{2f}$$ $$b =...
  22. J

    Plotting graph for acceleration against displacement

    A mass of 0.3 kg is suspended from a spring of stiffness 200 N m–1. If the mass is displaced by 10 mm from its equilibrium position and released, for the resulting vibration:Plot a graph of acceleration against displacement (x) (for values of x from x = –10 mm to x = +10 mm) Hugely struggling...
  23. Ackbach

    MHB TiKZ Question on Plotting a Parabola

    I want to plot an hormetic curve. This is the code I have so far: \begin{tikzpicture}[scale = 0.75] %preamble \usepackage{pgfplots} \begin{axis} [xlabel=Exposure, ylabel=Benefit] \end{axis} \draw[black, line width = 0.50mm] plot[smooth,domain=0:6] (\x, {4-(\x-3)^2}); \end{tikzpicture}...
  24. G

    Plotting a graph to find unknowns

    Homework Statement Plot a suitable graph, using your x and y data, to find the variables a and b. Homework Equations y = ax + bx^2 The Attempt at a Solution This is clearly a quadratic, the best I can do is to play about with lns and I came out with lny = lnax + lnbx^2 lny = ln(ab.x^3) lny =...
  25. M

    Plotting Implicit function of 1 variable

    Hi PF! I am trying to plot a difficult implicit function, but for ease let's pretend that function is ##y^5\sqrt{1-x}+yx+1 = 0##. I want to plot ##Re(y)## as a function of ##x:x\in[0,2]##. I am using MATLAB. Do you think the best way to plot this is to assign ##x## a value in the domain, use...
  26. Danny Boy

    A Is the overlap of coherent states circular symmetric?

    What I am interested in doing, is considering the angular momentum eigenstate for a spin ##1## system: ##|J=1, M=1\rangle = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}##, forming the coherent state ##|CS \rangle = \begin{bmatrix} 0.5 \\ -\frac{i}{\sqrt{2}} \\ -0.5...
  27. E

    What is the Software that has this Plotting Style?

    What is the software that has this kind of plot: I want to use it for plotting graphs because it looks clean. Thank you in advance. Edit: To avoid confusion, I want to know what software produces this graphing style, not the kind of plot.
  28. AdrianMachin

    Plot 3D graph of electric potential of a charged particle

    Homework Statement Plot the electric potential ##V(r)## due to a positively charged particle located at the origin of an XY plane. Homework Equations ##V=\frac 1 {4πε_0} \frac q r## The Attempt at a Solution I'm unfamiliar with 3D coordinates at this time, but I like to know how can I plot it...
  29. Vital

    Graph r = 6 cos() issues with plotting on xy-plane

    Homework Statement Hello! Last week I have came here for the help related to this problem. I am creating a new thread to describe the issue more precisely. I will be grateful for your help and explanation. I post the explanation for the book first accompanied by attached pictures, and below I...
  30. R

    Plotting a RLC Circuit: Analyzing a Differential Equation

    I'm not sure about the physical behavior of a RLC circuit and I have to give a presentation that involves one. So I've decided to plot the current. I found a book that gives a differential equation to describe the circuit. ##L\frac{d^2i}{dt^2} + R\frac{di}{dt} + \frac{1}{C}i = \frac{dv}{dt}##...
  31. F

    Mathematica Plotting with base 10 as the interval

    I want to plot a function f(x) such that it's domain is from 1 to 10000 but I want the graph to read 1, 10, 100, 1000, 10000 in the x-axis, while the y-axis is normal. ##f(x) = 2\sin^{-1} ( e^{-\frac{60}{x}})##
  32. S

    Plotting Carnot Engine Cycle on PV Diagram

    Homework Statement I am tasked to create a PV Diagram of a Carnot Engine Cycle. I must find pressure, volume, Q, W, ΔU, and ΔS on all four points. This is what has been given to me by my teacher: a to b : Isothermal b to c: Adiabatic c to d: Isothermal d to a: Adiabatic TC = 300 K TH = 1700 K...
  33. Conclaude

    Numerical Plot of Particle Orbits in Kerr Equatorial Plane

    Context: In James Hartle's Gravity, pp. 318-319, Example 15.1, he considers the case of a particle that starts falling from infinity into a Kerr black hole, initially with no kinetic energy (e = 1) and initially moving radially (ℓ = 0). The particle's motion is constrained along the equatorial...
  34. Arman777

    MATLAB Plotting Data with Matlab - Learn How to Code & Graph

    I have some datas from our physics experimetn and we have to plot them on matlab.Idk how to do them,I don't know how to write codes.Also I have to write of the axises and table names
  35. JayFlynn

    MATLAB Plotting the tragectory of an asteroid in MATLAB

    I am trying to plot the trajectory of an asteroid in MATLAB using ode23. The only bodies in the system are The Sun, Earth, Mars and Jupiter and their orbital data has been loaded from data files. I have picked arbitrary initial conditions for the asteroid and believe my forces are correct. My...
  36. Pouyan

    Matlab Homework: Plotting T vs λ with Max Function and Stylish Design

    Homework Statement I have a function : and I want to draw : Homework Equations where T has values : 600, 800, 1000, 1100 And λ:(0,10*^-5] I have to use max function with two values and the solution must not consist of repeating four times of similar snippets of code, one for each curve.The...
  37. Poetria

    Complex functions with a real variable (graphs)

    Homework Statement How do the values of the following functions move in the complex plane when t (a positive real number) goes to positive infinity? y=t^2 y=1+i*t^2[/B] y=(2+3*i)/t The Attempt at a Solution I thought: y=t^2 - along a part of a line that does not pass through the...
  38. tomdodd4598

    I Interpreting These '2 Particles in a Box' Plots

    Hey there, I am familiar with the mathematics of multi-particle systems, but have now moved on to trying to plot them. I was a little ambitious and thought I'd attempt to somehow plot energy eigenfunctions of two particles in a 2-D box. Obviously I immediately ran into the issue that there are...
  39. M

    How to Plot Two Matrices in Excel?

    Hi PF! I have two matrices of equal dimensions. I would like to plot them such that row ##i## of matrix 1 corresponds the x-axis and row ##i## of matrix 2 corresponds to the y axis, so that row ##i## of matrix 1 and matrix 2 together give a coordinate. Does anyone know how to do this quickly...
  40. Stella.Physics

    Mathematica Graph Plotting Problem in Mathematica

    Hello to all. I've been trying to plot some graphs on Mathematica but I have faced some troubles so far. I am working on this paper by Lattimer on binary systems: https://arxiv.org/abs/astro-ph/0002203 I am trying to reproduce Figure 11 but something seems to go wrong. Here's what I have...
  41. M

    Plotting magnetic field lines between two adjacent NS poles

    This question is regarding the magnetic field lines around two abutting alternating poles. Take two axially magnetised disc magnets and place them next to each other (like tangent circles), so on each side the adjacent or neighboring magnet is of the opposite pole. By sprinkling iron filings...
  42. L

    Plotting in Matlab: w vs z in (-1,1) Domain

    Homework Statement (In Matlab) The variables w and z are related by w=cos(n*acos(z)) and z=cos(acos(w)/n) for n = 1,2,3,4 plot w vs z over domain (-1,1). Homework Equations w=cos(n*acos(z)) z=cos(acos(w)/n) The Attempt at a Solution First I tried to substitute z into w and thought since I...
  43. S

    Plotting Density Parameters as a Function of Redshift

    I'm trying to plot the density parameters against redshift in Python, so I suppose this is kind of a cross over of programming and physics. I've been given the following two equations in order to do so $$r(z) = \lambda_H \int_{0}^{z} \frac{dz'}{E(z')}$$ $$E(z) = \frac{H(z)}{H_0} = \sqrt...
  44. E

    MATLAB How to Plot a 3D Minimization Function in MATLAB?

    Hi to everyone, I'm trying to plot a 3D graph on MATLAB but I do not know how. The function that I want to plot is: y=fminbnd(@(x) wei(x,shape,scale,tw,tf),x0,x1). I would like to plot the minimization of the function wei (y) in function of the shape and the scale. Wei is a function that I...
  45. A

    "ANSYS Workbench" Contact tool results plotting vs length?

    Hello ansys users in ANSYS workbench, how can I plot the contact tool results (Frictional stress, sliding distance...etc) with length (500mm for example) in the "x-axis" instead of the default "by time" option?. the path method can not be used with this type of results "Contact tool results"...
  46. A

    I Plotting the orbits of the planets

    Hello everybody! Long-time lurker and second-time posting. I'm working on a project for my math class, and I'm trying to plot the orbits of the planets using vectors. I've chosen to use MATLAB because I am decently familiar with it. I've used the formulas described in this post here to get my...
  47. Kara386

    I Can plotting corrected values help determine a more precise E_g?

    I have the equation ##qV = E_g + T[kln(\frac{I}{A}) - (3 + \frac{\gamma}{2})kln(T)]## So if I plot ##qV## against ##T## that'll be a straight line with the y-intercept being ##E_g##. But then my lab manual says a more precise value of ##E_g## can be found by plotting the corrected value...
  48. Q

    Plotting from stream function in Maple

    Homework Statement So the question is to plot the streamlines of the stream function. ψ(r,θ)=[v][/0](r-1/r)sin(θ)=constant Homework Equations Im asked to do this in MATLAB or maple. preferably maple. But equations that is needed to plot it is also totally fine. The Attempt at a Solution It...
  49. J

    Plotting Graphs to fit the Data

    Homework Statement Hi, we investigated how the length of a pendulum affects the time period of oscillation. We collected data by changing the length (l) of the pendulum and measuring the time period (T). We then squared the T value before plotting it on the y-axis and on the x-axis we just...
  50. Safinaz

    How to make a plot on an experimental figure

    Hi all, What is the tool which can add my Listplot graph like: to an experimental figure as following: such that the (x-y) axes coincidence in both figure and graph: Actually I tried Mathematica as: data27 = Import["~/Events/scan.dat"]; idata27 = Table[{data27[[i, 2]], data27[[i...
Back
Top