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 8527953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:41:37+00:00 2026-06-11T08:41:37+00:00

import csv a = csv.reader(open(DATA+’DataA.csv’)) for row in a: time = row[1] conversion =

  • 0
import csv

a = csv.reader(open(DATA+'DataA.csv'))

for row in a:
   time = row[1]
   conversion = row[3]
   x_series = time
   y_series = conversion
   scatter_plot(zip(x_series,y_series))

I am attempting to create a scatter plot in Sage Notebook. I’m reading in the data in DataA.csv specifically rows 1 and 3. I want to create a scatter plot based on those pieces of data. Everything works except that a new scatter plot is created for each individual tuple instead of having all of them on one scatter plot.
Any ideas of how I can fix this. Thanks in advance

  • 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-06-11T08:41:39+00:00Added an answer on June 11, 2026 at 8:41 am

    You might want to try this.

    import csv
    
    a = csv.reader(open(DATA+'DataA.csv'))
    
    G = Graphics()
    
    for row in a:
       time = row[1]
       conversion = row[3]
       x_series = time
       y_series = conversion
       G += scatter_plot(zip(x_series,y_series))
    
    G # this will show the plot
    

    I don’t have your data (or any data, actually) so I can’t test it, but this should work fine. In Sage one adds plots, and then they show up as the default representation when G is given. You could ask the different scatter plots to have different colors, too…

    Also, I prefer to use point or perhaps list_plot for this, but I guess it’s a matter of preference.

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

Sidebar

Related Questions

import csv with open('thefile.csv', 'rb') as f: data = list(csv.reader(f)) import collections counter =
import csv datafile = csv.reader(open('datafile.csv','rb'), delimiter=,, quotechar='|') date, data1, data2, data3 = [], [],
import csv from geopy import geocoders g = geocoders.Google() spamReader = csv.reader(open('locations.csv', 'rb'), delimiter='\t',
I am trying to import a csv file to insert data into an existing
I'm trying to import a csv (that is a data extract from a SQL
I tried to import data from csv in my rails app, but something went
I have a class to import data from a CSV file, and a function
Currently I'm writing a method to read data from a CSV file and import
i want to import csv file to mysql database. the upload was success. but
How to read and import .csv file in groovy on grails. I have .csv

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.