Posts

Showing posts from August, 2021

Modifying PDF contrast with Inkscape

 I had to submit a form to my school to verify my enrollment to another person. In order to do so, I had to scan the form first and then email it. But rather than use my printer's scanner, I decided to use my phone to scan the document as it was faster. Unfortunately the contrast of the pdf was not the best. I tried adjusting it by changing it to "Greyscale" or "Black and White" after I had scanned it on my phone through the notes app, but it still was not good enough.  Because I've been using Inkscape, I wondered whether I could use it to change the contrast of the pdf. After importing it, I used the "Filters" tab, and after some searching, I found that "Greyscale..." under the "Color" option would achieve what I wanted. I found that by using "Lightness", I could change the contrast of the page. I will probably use this again as I don't have a subscription with Adobe Acrobat Reader to edit my PDF files. But I migh...

subplot() vs tiledlayout() - MATLAB

 I learned about tiledlayout() earlier this year. I was exporting figures from MATLAB as svg files and importing them into Inkscape. I found that there was a lot of unnecessary space between the plots and around them within the figures. tiledlayout() allowed me to remove this unnecessary space.  When I was making figures, I had data that needed a for loop. I found out that if I wanted to use a specific layout(dim x dim), I had to define one for each iteration. There are still some ways to edit a figure that I need to review, but I hope to continue using tiledlayout() over subplot(). 

Plotting matrices and generating random integers - MATLAB

I was interested in plotting a matrix vs matrix in MATLAB. At first, I though that using plot(matrix1, matrix2) would plot each row from each matrix against each other. I then tried using a for loop where I looped over each row in order to plot all rows(also had to use "hold on"). I learned my lesson when I looked at documentation for plot(), which stated that when plotting matrices, the columns of each matrix were plotted against each other. So I had to use plot(matrix1', matrix2').  I also had was interested in plotting random rows from the matrices, rather than all of the data from the matrices. I found that randi() would allow me to achieve this, as it can generate a vector of random integers given a specific range. Then I could just use plot(matrix1(genvector, :), matrix2(genvector, :)) to obtain the plot with random rows from each of the matrices.  It was nice getting back into MATLAB after some time. I hope to continue practicing MATLAB, in addition to Python, ...

New things I learned about Inkscape

 Inkscape is a software used to edit plots for manuscripts. When using Inkscape, one must turn all numbers and text into "text" within the software. This way, future editors can make changes, as I understand. In addition, how the svg file is converted to pdf is important. For example, one must make sure to select 'Embed fonts' in order to make sure the text is able to be selected.  Recently I learned that when selecting a group of objects(?), one can use TAB to go through the objects. This will allow you to select items that might be underneath others or in a different layer. I learned that you can not only move an object(?) up and down but also move them to another layer.  I hope to continue learning about Inkscape and how to properly format plots for manuscripts. 

Making a website with a blog? Not sure yet

Using freeCodeCamp's Response Web Design track, I was able to learn enough to get a certification and make a website. I have learned so far that a website made with only HTML and CSS is considered static. I would like to learn more to see how to make a website dynamic, though the definition of dynamic is still not quite clear to me.  Here are some of the questions I had when thinking about how to include a blog within my static website: Can I use iframe tag to include a blog post, made as a text file, within an html/css site?  Can I use JavaScript to make dynamic website? How would I add a navigation bar so that one could go to different posts> In addition to the question above, how do I make it so each blog post isn't its own css-styled html file? If each blog post is its own css-styled html file, then I'll have to edit each one whenever I make a new blog post in order to add link to new blog post? Hopefully I'll be able to learn more to properly understand how a dy...