Coder Social home page Coder Social logo

coordinate axes (shape?) about pgf HOT 8 CLOSED

pgf-tikz avatar pgf-tikz commented on August 24, 2024
coordinate axes (shape?)

from pgf.

Comments (8)

pgf-tikz-bot avatar pgf-tikz-bot commented on August 24, 2024

Migrated from SourceForge
Author: tantau
Timestamp: 2005-11-24 08:42:23

Logged In: YES
user_id=886275

Hi!

yeah... Actually, I had started on some code for this but then somehow failed
to integrate it with the main trunk and now it's gone...

The main problem with the coordinate axis business is getting the syntax
right. The axis mechanism should be highly configurable (probably using lots
of styles and options), but dead-simple to use and, preferably, there should
be very little commands that need to be learned. And it should integrate
nicely with the rest of TikZ. So, I haven't got aound designing a syntax that
solves all these problems.

Naturally, good proposals would be welcome... Ideally with some code...

Best regards,
Till

from pgf.

pgf-tikz-bot avatar pgf-tikz-bot commented on August 24, 2024

Migrated from SourceForge
Author: nobody
Timestamp: 2005-11-24 22:43:50

Logged In: NO

Hi!

Thanks for your quick answer.

I'd really like to help, because my gnuplot/metapost
solution for producing plots is a mess.

Unfortunately, I've no experience in TeX programming and at
the moment my time is fully engaged with my diploma thesis -
in fact, the reason for my request are the plots I have to
produce for it ;).
So currently there's little chance that I can provide much
assistance.
However, if there's still demand for some help, when I've
finished this project, I'll be at your disposal.

Best regards,
Markus

from pgf.

pgf-tikz-bot avatar pgf-tikz-bot commented on August 24, 2024

Migrated from SourceForge
Author: tantau
Timestamp: 2013-08-28 12:59:57.292000

  • status: open --> open-accepted
  • Group: --> Next Release (example)

from pgf.

pgf-tikz-bot avatar pgf-tikz-bot commented on August 24, 2024

Migrated from SourceForge
Author: tantau
Timestamp: 2013-08-28 12:59:57.666000

There are now pgfplot and the datavisualization subsystem.

A simple axis "pic" (a very new concept) is still missing, however, for simple cases. So, let us postpone this / mark it as nice to have.

from pgf.

pgf-tikz-bot avatar pgf-tikz-bot commented on August 24, 2024

Migrated from SourceForge
Author: tantau
Timestamp: 2013-09-30 10:31:24.821000

  • Group: Next Release --> Future

from pgf.

loopspace avatar loopspace commented on August 24, 2024

Here's some code I currently use for this:

pics/axes/.style args={#1:#2;#3:#4}{
    code = {
      \path[grid] (#1-.5,#3-.5) grid (#2+.5,#4+.5);
      \draw[->,axis] (#1 - .5,0) -- (#2 + .5,0);
      \draw[->,axis] (0,#3 - .5) -- (0,#4 + .5);
      \foreach \x in {#1,...,#2} {
        \ifnum\x=0\else
        \draw[axis] (\x,0) -- (\x,-.2);
        \node[below left] at (\x+.1,-.2) {\(\x\)};
        \fi
      }
      \node[below] at (#2+.5,-.2) {\(x\)};
      \foreach \y in {#3,...,#4} {
        \ifnum\y=0\else
        \draw[axis] (0,\y) -- (-.2,\y);
        \node[below left] at (-.1,\y) {\(\y\)};
        \fi
      }
      \node[left] at (-.1,#4+.5) {\(y\)};
      \node[below left] at (0,0) {0};
    }
  },
pics/axes/.default={-6:6;-6:6},

from pgf.

hmenke avatar hmenke commented on August 24, 2024

Thank you Andrew for posting your solution.

I'm closing this issue for now, because I don't think TikZ needs a builtin solution for everything.

from pgf.

loopspace avatar loopspace commented on August 24, 2024

Sounds completely reasonable to me.

from pgf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.