Giter Site home page Giter Site logo

Comments (5)

ojwoodford avatar ojwoodford commented on June 29, 2024

Please can you provide a script for generating and exporting a simple test figure which demonstrates the problem, and tell me what version of MATLAB and what OS you're using.

from export_fig.

stevendarth avatar stevendarth commented on June 29, 2024

Hi Oliver

Thanks for your reply Oliver.
Case 1: usual axis:
x=1:100;
y=1:100;
figure,plot(x,y,'linewidth',3)
set(gca,'xscale','log','yscale','log','fontweight','bold','fontsize',20);
export_fig('test1','-jpg','-transparent','-m1.5'); % Save the image as JPEG

The results:
test1

Case 2: Compressed axis (only a small range):
x=1:100;
y=1:100;
figure,plot(x,y,'linewidth',3)
set(gca,'xscale','log','yscale','log','fontweight','bold','fontsize',20);
axis([1 2 1 2])
export_fig('test1','-jpg','-transparent','-m1.5'); % Save the image as JPEG

The result:

test2

It can show the axis as 10^(0.1), for instance, on screen, but when it prints them as Jpeg or PDF etc, it prints the true value (1.2589).

P.S., I am using MATLAB R2013a on Windows 7.

Thank you.

Steven

from export_fig.

ojwoodford avatar ojwoodford commented on June 29, 2024

I have just pushed a change which I believe fixes this. If it doesn't, please get back to me.

from export_fig.

stevendarth avatar stevendarth commented on June 29, 2024

Thanks Oliver.
It is fine now!

from export_fig.

altmany avatar altmany commented on June 29, 2024

cross-reference: issue #34 on R2014b (solution: manual axes limits only for X/Y, not Z)

from export_fig.

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.