Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6610837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:53:31+00:00 2026-05-25T19:53:31+00:00

I have a set of points given by this list: list1 = {{3, 1},

  • 0

I have a set of points given by this list:

list1 = {{3, 1}, {1, 3}, {-1, 2}, {-1, -1}, {1, -2}};

I would like Mathematica to draw a line from the origin to all the points above. In other words draw vectors from the origin (0,0) to all the individual points in the above set. Is there a way to do this? So far I’ve tried the Filling option, PlotPoints and VectorPlot but they don’t seem to be able to do what I want.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:53:32+00:00Added an answer on May 25, 2026 at 7:53 pm

    Starting easy, and then increasing difficulty:

    Graphics[{Arrow[{{0, 0}, #}] & /@ list1}]
    

    enter image description here

    Graphics[{Arrow[{{0, 0}, #}] & /@ list1}, Axes -> True]
    

    enter image description here

    Needs["PlotLegends`"];
    list1 = {{3, 1}, {1, 3}, {-1, 2}, {-1, -1}, {1, -2}};
    k = ColorData[22, "ColorList"][[;; Length@list1]];
    
    GraphicsRow[{
        Graphics[Riffle[k, Arrow[{{0, 0}, #}] & /@ #], Axes -> True], 
        Graphics@Legend[Table[{k[[i]], #[[i]]}, {i, Length@#}]]}] &@list1
    

    enter image description here

    Needs["PlotLegends`"];
    list1 = {{3, 1}, {1, 3}, {-1, 2}, {-1, -1}, {1, -2}};
    k = ColorData[22, "ColorList"][[;; Length@list1]];
    ls = Sequence[Thick, Line[{{0, 0}, {1, 0}}]];
    
    GraphicsRow[{
        Graphics[Riffle[k, Arrow[{{0, 0}, #}] & /@ #], Axes -> True], 
        Graphics@Legend[MapThread[{Graphics[{#1, ls}], #2} &, {k, #}]]}] &@list1
    

    enter image description here

    Needs["PlotLegends`"];
    list1 = {{3, 1}, {1, 3}, {-1, 2}, {-1, -1}, {1, -2}};
    pr = {Min@#, Max@#} & /@ Transpose@list1;
    k = ColorData[22, "ColorList"][[;; Length@list1]];
    
    GraphicsRow[{
        Graphics[r = Riffle[k, {Thick,Arrow[{{0, 0}, #}]} & /@ #], Axes -> True], 
        Graphics@
         Legend[MapThread[
                 {Graphics[#1, Axes -> True, Ticks -> None, PlotRange -> pr], 
                  Text@Style[#2, 20]} &, 
                 {Partition[r, 2], #}]]}] &@list1
    

    enter image description here

    You could also tweak ListVectorPlot, although I don’t see why you should do it, as it is not intended to use like this:

    list1 = {{3, 1}, {1, 3}, {-1, 2}, {-1, -1}, {1, -2}};
    data = Table[{i/2, -i/Norm[i]}, {i, list1}];
    ListVectorPlot[data, VectorPoints -> All, 
                         VectorScale  -> {1, 1, Norm[{#1, #2}] &}, 
                         VectorStyle  -> {Arrowheads[{-.05, 0}]}]
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of data points in 3D space which apparently all fall
Using JavaScript I would like to check if a given URL matches a list
I have a list of amplitude frequency response points. The amplitudes are given in
I have a data set of ~500 points in 2D, with given coordinates (also
I have set break points on my attached properties SetXXX and GetXXX static methods.
I have set of points which lies on the image. These set of points
I have a set of points that i want to turn into a closed
I have a set of points represented as a 2 row by n column
I have a set S of points (2D : defined by x and y)
I have a set of 2D points inside a finite 2D region of space

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.