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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:42:39+00:00 2026-06-18T12:42:39+00:00

I am trying to replicate one of the examples in scikit-learn, plot_iris_dataset.py . I

  • 0

I am trying to replicate one of the examples in scikit-learn, plot_iris_dataset.py. I believe I have the latest python-matplotlib (as of Feb. 8 2013), but I am getting an error trying to call set_zticks(()) method in Axes3D object. I won’t copy all the code, but it’s like so:

...
ax = Axes3D(fig, elev=-150, azim=110)
...
ax.set_zticks(()

gives an error:

AttributeError: 'Axes3D' object has no attribute 'set_zticks'

Since I’m new to scikit-learn and matplotlib, I’m not really sure what the call is supposed to do. If I comment it out, I get a 3-D plot just fine (the rest of the code on the above page works). I’ve tried some googling but haven’t found a work-around for this, but am getting hints that maybe this kind of call is outdated. I figured I’d post a question on stackoverflow hoping someone can clarify for me or others.

EDIT: I now notice that the call is supposed to remove the tick marks. It doesn’t appear to work for any direction, x, y, or z, but I only get the error for the z-direction. Here’s how my graph appears (the data points aren’t saving in the PNG file for some reason)My plot, notice the tick marks in all dimensions

Other references:

  • a message thread elsewhere saying that this bug maybe is fixed in later versions.
  • this page gets a google hit but I don’t understand it or see reference to zticks.
  • 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-18T12:42:40+00:00Added an answer on June 18, 2026 at 12:42 pm

    I finally got this problem solved, thanks to @tcaswell … I am inexperienced, so I’m not quite sure, in the end, what worked, but I will try to explain:

    Short answer: Updating to latest matplotlib (to 1.2 from 1.0.1) seemed to be the solution.

    Long answer: Updating matplotlib was not easy! I tried a bunch of things, so I’m not sure what ended up working, but here’s a general outline:

    As of Feb. 9, 2013, apt-get install only gets version 1.0.1. So, I uninstalled and installed from source as described on matplotlib page.

    When I tried this, the code compiled but my figure windows would not show up. This was due to a backend problem, not recognizing GTK properly (or something like that). To fix it, I customized the setup.cfg file for building matplotlib

    <line 58> gtk = True
    <line 57> gtkagg = True
    <line 74> backend = GTKAgg
    

    Then I built and compiled as outlined on the above page.

    NOTE: I did a WHOLE bunch of other things, so I am not sure if the above is the minimal solution.

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

Sidebar

Related Questions

I have a workflow(on svn) which I am trying to replicate with git, but
Im trying to replicate an effect as seen on http://www.fiat.co.uk/Showroom/#showroom/punto_evo/explore . I have made
I'm trying to replicate some of the functionality in Apple's avTouch, but I can't
I have been trying to replicate the buffer overflow example3 from this article aleph
I'm trying to understand how to have more than one series on a plot,
Basically I was trying to replicate one of the things that xajax gave me
I'm trying to replicate the functionality of the latest YouTube app in the Android
I'm trying to replicate the following sliding navigation menu functionality (the one with TOP
I’m trying to replicate the behavior of ItemizedOverlay.boundCenterBottom() , inside of one of my
I'm trying the replicate the imagecopy PHP function in .NET. I have two images

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.