Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plotting axes help
#1
Hello,

The question states:

As we will later be acting on the coordinate axes with passive transformations, we will need to have our axes stored in arrays. We can represent the x-axis as two arrays: one containing the x-values ranging from, say, -1 to 1 (you can take 100 equally spaced values) and another containing the y-values (of the x-axis), which are all 0. In a code cell, introduce two NumPy arrays for the x and y values of the x-axis,and similarly two more NumPy arrays for the x and y values of the y-axis. Type code to create a figure of appropriate size (i.e. large enough to look good) and plot the two axes as blue lines. Plot a point with coordinates (x; y) = (0:5; 0:4) as a blue circle.

import numpy as np
import matplotlib.pyplot as plt

x1=np.linspace(-1, 1, 100)
y1=np.linspace(-1, 1, 100)
Any help to move forward with this question ...
Reply


Messages In This Thread
Plotting axes help - by StillAnotherDave - Jan-22-2020, 02:25 PM
RE: Plotting axes help - by jefsummers - Jan-23-2020, 01:26 AM
RE: Plotting axes help - by StillAnotherDave - Jan-23-2020, 10:48 AM
RE: Plotting axes help - by jefsummers - Jan-23-2020, 01:04 PM
RE: Plotting axes help - by StillAnotherDave - Jan-23-2020, 02:39 PM
RE: Plotting axes help - by StillAnotherDave - Jan-23-2020, 05:19 PM
RE: Plotting axes help - by jefsummers - Jan-23-2020, 11:07 PM
RE: Plotting axes help - by StillAnotherDave - Jan-24-2020, 01:20 AM
RE: Plotting axes help - by StillAnotherDave - Jan-24-2020, 12:03 PM
RE: Plotting axes help - by StillAnotherDave - Jan-24-2020, 03:28 PM
RE: Plotting axes help - by jefsummers - Jan-24-2020, 04:23 PM
RE: Plotting axes help - by StillAnotherDave - Jan-24-2020, 04:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Defining x and y axes in Spectrogram Function amy5678 3 2,351 Nov-29-2020, 01:42 PM
Last Post: jefsummers
  How do I set the figure title and axes labels font size in Matplotlib? anouar2002 1 1,692 Nov-03-2020, 05:31 PM
Last Post: ndc85430

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020